You are not logged in.
http://archive.ubuntu.com/ubuntu/pool/m … rig.tar.gz
May we should have a ubuntu-gdm package? they got a minimal gdm-setup tool inside.
as discussed here http://bbs.archlinux.org/viewtopic.php?id=82089 ...
There are peoples who like to have some easy way to configure gdm... as gnome is some DM with Gui for everything...
So please give me advice to setup a PKGBUILD to build a package from .deb or the ubuntu source provided above.
Cancel me not -- for what then shall remain?
Abscissas, some mantissas, modules, modes, A root or two, a torus and a node:
The inverse of my verse, a null domain.
-- Stanislaw Lem, The Cyberiad
Offline
Very quick guide: Debian/ubuntu package source is generated by applying a patchset (file with extension .diff.gz) to the original source (file with extension .orig.tar.gz). There may be patches that are applied to the source during the build process and these should be in a directory named debian/patches within the package source.
Before starting on the PKGBUILD take a look in the debian/rules file, where you will find a list of dependencies, configuration/compilation options and sundry packaging commands (the syntax isn't too difficult to follow). I haven't looked at ubuntu gdm but, serving as a worked example, here's the PKGBUILD that I used at one time to build lock-keys-applet from the debian source:
pkgname=lock-keys-applet
pkgver=1.0
_debianver=8.3
pkgrel=99
pkgdesc="Shows the status of the caps-, num- and scroll-lock keys"
arch=(i686 x86_64)
license=('GPL')
depends=('gnome-panel')
makedepends=('intltool' 'perlxml' 'gnome-doc-utils' 'pkgconfig' 'gnome-settings-daemon')
options=(!libtool !emptydirs)
url="http://www.wh-hms.uni-ulm.de/~mfcn/lock-keys-applet/"
groups=(gnome)
install=${pkgname}.install
source=(http://ftp.de.debian.org/debian/pool/main/l/${pkgname}/${pkgname}_${pkgver}.orig.tar.gz \
http://ftp.de.debian.org/debian/pool/main/l/${pkgname}/${pkgname}_${pkgver}-${_debianver}.diff.gz \
background_colours.patch)
md5sums=('8dc772d62f0881c8978513d7e69de3db' \
'b6370bab36c78149cab19f1d71330feb' \
'de9521d1fd357658fd72d8f85fa25f17')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
# Apply debian diff and patches
patch -Np1 -i ${srcdir}/${pkgname}_${pkgver}-${_debianver}.diff || return 1
for patchfile in $( ls debian/patches/*.patch ); do patch -Np1 -i ${patchfile} || return 1; done
# Apply background colours patch
patch -Np1 -i ${srcdir}/background_colours.patch || return 1
# From AUR PKGBUILD
# GtkTooltips deprecated in gtk 2.12, it's been replaced with GtkTooltip
sed -i 's|GtkTooltips |GtkTooltip |g' src/lock-keys-applet.c
sed -i 's|gtk_tooltips_set_tip;|gtk_tooltip_set_text|g' src/lock-keys-applet.c
# From AUR PKGBUILD
# GTK_SIGNAL_FUNC deprecated in gtk 2.14 it's been replace with G_CALLBACK
sed -i 's|GTK_SIGNAL_FUNC|G_CALLBACK|g' src/lock-keys-applet.c
./configure --prefix=`pkg-config libpanelapplet-2.0 --variable=prefix` \
--sysconfdir=/etc --libexecdir=/usr/lib/${pkgname} \
--localstatedir=/var --disable-static || return 1
make || return 1
make DESTDIR="${pkgdir}" install || return 1
}Offline
thanks i will give it a try > after a night of sleep ![]()
a short look to the gdm_2.28.1.orig.tar.gz shows me none like debian rules and no .diff files
But here: https://launchpad.net/ubuntu/karmic/+so … 1-0ubuntu2
Last edited by killajoe (2009-11-19 22:45:01)
Cancel me not -- for what then shall remain?
Abscissas, some mantissas, modules, modes, A root or two, a torus and a node:
The inverse of my verse, a null domain.
-- Stanislaw Lem, The Cyberiad
Offline
thanks i will give it a try > after a night of sleep
a short look to the gdm_2.28.1.orig.tar.gz shows me none like debian rules and no .diff files
But here: https://launchpad.net/ubuntu/karmic/+so … 1-0ubuntu2
I've had a long and tedious day at work today, so this is brief and to the point
Visit that link you posted, download gdm_2.28.1.orig.tar.gz and gdm_2.28.1-0ubuntu2.diff.gz, extract them both to the same directory, cd into the newly extracted gdm-2.28.1, list the contents
acconfig.h config.h.in docs Makefile.am tests
acinclude.m4 config.sub gnome-doc-utils.make Makefile.in TODO
aclocal.m4 configure gui missing utils
AUTHORS configure.ac INSTALL mkinstalldirs xmldocs.make
ChangeLog COPYING install-sh NEWS
common daemon ltmain.sh omf.make
compile data m4 po
config.guess depcomp MAINTAINERS READMEthen run
patch -Np1 -i ../gdm_2.28.1-0ubuntu2.diffand list the contents again
acconfig.h config.h.in depcomp MAINTAINERS README
acinclude.m4 config.sub docs Makefile.am tests
aclocal.m4 configure gnome-doc-utils.make Makefile.in TODO
AUTHORS configure.ac gui missing utils
ChangeLog COPYING INSTALL mkinstalldirs xmldocs.make
common daemon install-sh NEWS
compile data ltmain.sh omf.make
config.guess debian m4 poNow, just for fun, list the contents of debian/patches
01_default_keyboard_layout_hal.patch
02_x_server_location.patch
03_hide_system_users.patch
04_fix_external_program_directories.patch
05_initial_server_on_vt7.patch
06_run_xsession.d.patch
07_correct_distribution_version.patch
08_use_polkit_for_settings.patch
09_gdmsetup.patch
10_xsplash.patch
11_crash_for_apport.patch
12_fusa_name_change.patch
13_cache_ck_history.patch
14_guest_session.patch
15_default_session.patch
16_gdmserver_user_manager.patch
17_add_failsafe.patch
17_use_timed_login_after_autologin.patch
19_no_greeter_for_autologin.patch
20_upstart.patch
22_shutdown_menu.patch
23_login_window_hint.patch
24_system_uid.patch
25_update_gconf_directories.patch
99_autoreconf.patch![]()
Offline
hm thanks so long but i think it will be a lot of work to build a archpackage....
The only thing iwe need is that configuration tool inside.. but i can not find any in the diffs but in the sources are some related files...
Cancel me not -- for what then shall remain?
Abscissas, some mantissas, modules, modes, A root or two, a torus and a node:
The inverse of my verse, a null domain.
-- Stanislaw Lem, The Cyberiad
Offline
Have a read through gdm-2.28.1/debian/changelog:
* debian/patches/09_gdmsetup.patch:
- Provide a setup tool for basic configuration
Last edited by azleifel (2009-11-21 23:00:15)
Offline
Yes this is a big patch... may it is possible to patch our gdm with this patch but may there are relations with other debian patches and so on ubuntu specific stuff inside... but i think it will be easier to do do it like this??
Cancel me not -- for what then shall remain?
Abscissas, some mantissas, modules, modes, A root or two, a torus and a node:
The inverse of my verse, a null domain.
-- Stanislaw Lem, The Cyberiad
Offline
It's not just a question of adding the 09_gdmsetup.patch, the relevant parts of 99_autoreconf.patch will also have to be added so that the simple gdm setup tool will be built with everything else. IMHO, given the limited range of gdm 2.28 configuration options, it isn't worth the effort other than as a learning exercise. I just followed the wiki and used gconf-editor to sort the basics ("sudo -u gdm dbus-launch gconf-editor"). The only extra thing I have done is add the gdm user to the audio group so that gdm can make a noise when it's ready.
Offline