diff options
author | wiz <wiz> | 2001-07-23 00:59:19 +0000 |
---|---|---|
committer | wiz <wiz> | 2001-07-23 00:59:19 +0000 |
commit | 004beaf10a77b501fb52f586c1822bbeae5e6243 (patch) | |
tree | 9749419b75c91fa8a5e5cf3866cde206510b3022 /x11/gdm | |
parent | 48b51d9aa1fd949048d3bc9cc5ddac7550b2fe5b (diff) | |
download | pkgsrc-004beaf10a77b501fb52f586c1822bbeae5e6243.tar.gz |
Add rc.d-type startup script, as requested in pkg/13475.
On deinstall, remove an additional directory that gets created for this package.
Diffstat (limited to 'x11/gdm')
-rw-r--r-- | x11/gdm/Makefile | 4 | ||||
-rwxr-xr-x | x11/gdm/files/gdm | 20 | ||||
-rw-r--r-- | x11/gdm/pkg/PLIST | 4 |
3 files changed, 26 insertions, 2 deletions
diff --git a/x11/gdm/Makefile b/x11/gdm/Makefile index 7e8d7a6919f..79f691b36c0 100644 --- a/x11/gdm/Makefile +++ b/x11/gdm/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.22 2001/06/12 20:33:09 jlam Exp $ +# $NetBSD: Makefile,v 1.23 2001/07/23 00:59:19 wiz Exp $ DISTNAME= gdm-2.2.0 CATEGORIES= x11 gnome @@ -84,6 +84,7 @@ post-build: ${ECHO} '#! ${SH}' >Xsession; \ ${ECHO} 'exec ${X11BASE}/lib/X11/xdm/Xsession $$@' >>Xsession; \ ${CHMOD} +x KDE Xsession + ${SED} "s|@PREFIX@|${PREFIX}|g" ${FILESDIR}/gdm > ${WRKDIR}/gdm post-install: ${CHMOD} +x ${WRKSRC}/config/gnomerc @@ -112,5 +113,6 @@ post-install: ${INSTALL_DATA} ${DISTDIR}/Daemon.README ${PREFIX}/share/doc/gdm ${INSTALL_DATA} ${DISTDIR}/Daemon.png ${PREFIX}/share/pixmaps ${LN} -fs Gnome ${GDMCFGDIR}/Sessions/Default + ${INSTALL_SCRIPT} ${WRKDIR}/gdm ${PREFIX}/etc/rc.d/ .include "../../mk/bsd.pkg.mk" diff --git a/x11/gdm/files/gdm b/x11/gdm/files/gdm new file mode 100755 index 00000000000..ec87a1690b8 --- /dev/null +++ b/x11/gdm/files/gdm @@ -0,0 +1,20 @@ +#!/bin/sh +# +# $NetBSD: gdm,v 1.1 2001/07/23 00:59:20 wiz Exp $ +# + +# PROVIDE: gdm +# REQUIRE: DAEMON LOGIN wscons +# KEYWORD: shutdown + +. /etc/rc.subr + +name="gdm" +rcvar=$name +command="@PREFIX@/bin/${name}" +pidfile="/var/run/${name}.pid" +required_files="@PREFIX@/etc/gdm/gdm.conf" +extra_commands="reload" + +load_rc_config $name +run_rc_command "$1" diff --git a/x11/gdm/pkg/PLIST b/x11/gdm/pkg/PLIST index 631b94c677d..5872514f199 100644 --- a/x11/gdm/pkg/PLIST +++ b/x11/gdm/pkg/PLIST @@ -1,4 +1,4 @@ -@comment $NetBSD: PLIST,v 1.5 2001/03/20 02:42:16 mjl Exp $ +@comment $NetBSD: PLIST,v 1.6 2001/07/23 00:59:21 wiz Exp $ bin/gdm bin/gdmchooser bin/gdmconfig @@ -14,6 +14,7 @@ etc/gdm/locale.alias.default etc/gnomerc.default etc/gdm/Sessions/Failsafe etc/gdm/gnomerc +etc/rc.d/gdm share/doc/gdm/Daemon.README share/gnome/help/gdm/C/configuration.html share/gnome/help/gdm/C/daemonov.html @@ -68,6 +69,7 @@ share/pixmaps/nohost.png @dirrm share/gnome/help/gdm/C/images @dirrm share/gnome/help/gdm/C @dirrm share/gnome/help/gdm +@dirrm share/gdm @dirrm share/doc/gdm @dirrm etc/gdm/Sessions.default @dirrm etc/gdm/PreSession.default |