Put xdm's config files in ${PKG_SYSCONFBASE}/xdm, install them using CONF_FILES, and adjust the rc.d script. (As requested in PR#41102). Bump PKGREVISION.diff -r1.18 -r1.19 pkgsrc/x11/xdm/Makefile
(sbd)
@@ -1,28 +1,40 @@ | @@ -1,28 +1,40 @@ | |||
1 | # $NetBSD: Makefile,v 1.18 2012/04/29 07:48:34 sbd Exp $ | 1 | # $NetBSD: Makefile,v 1.19 2012/04/29 08:04:56 sbd Exp $ | |
2 | 2 | |||
3 | DISTNAME= xdm-1.1.11 | 3 | DISTNAME= xdm-1.1.11 | |
4 | PKGREVISION= 1 | |||
4 | CATEGORIES= x11 | 5 | CATEGORIES= x11 | |
5 | MASTER_SITES= ${MASTER_SITE_XORG:=app/} | 6 | MASTER_SITES= ${MASTER_SITE_XORG:=app/} | |
6 | EXTRACT_SUFX= .tar.bz2 | 7 | EXTRACT_SUFX= .tar.bz2 | |
7 | 8 | |||
8 | MAINTAINER= blair.sadewitz@gmail.com | 9 | MAINTAINER= blair.sadewitz@gmail.com | |
9 | HOMEPAGE= http://xorg.freedesktop.org/ | 10 | HOMEPAGE= http://xorg.freedesktop.org/ | |
10 | COMMENT= X Display Manager from modular X.org | 11 | COMMENT= X Display Manager from modular X.org | |
11 | 12 | |||
12 | DEPENDS+= sessreg-[0-9]*:../../x11/sessreg | 13 | DEPENDS+= sessreg-[0-9]*:../../x11/sessreg | |
13 | 14 | |||
14 | PKG_DESTDIR_SUPPORT= user-destdir | 15 | PKG_DESTDIR_SUPPORT= user-destdir | |
15 | 16 | |||
17 | PKG_SYSCONFSUBDIR= xdm | |||
18 | CONFIGURE_ARGS+= --with-xdmconfigdir=${PKG_SYSCONFDIR:Q} | |||
19 | ||||
20 | EGDIR= ${PREFIX}/share/examples/xdm | |||
21 | INSTALL_MAKE_FLAGS+= xdmconfigdir=${EGDIR:Q} | |||
22 | ||||
23 | CONF_FILES+= ${EGDIR}/xdm-config ${PKG_SYSCONFDIR}/xdm-config | |||
24 | CONF_FILES+= ${EGDIR}/Xaccess ${PKG_SYSCONFDIR}/Xaccess | |||
25 | CONF_FILES+= ${EGDIR}/Xresources ${PKG_SYSCONFDIR}/Xresources | |||
26 | CONF_FILES+= ${EGDIR}/Xservers ${PKG_SYSCONFDIR}/Xservers | |||
27 | ||||
16 | CONFIGURE_ARGS+= --enable-dynamic-greeter | 28 | CONFIGURE_ARGS+= --enable-dynamic-greeter | |
17 | CONFIGURE_ARGS+= --enable-tcp-transport | 29 | CONFIGURE_ARGS+= --enable-tcp-transport | |
18 | CONFIGURE_ARGS+= --enable-unix-transport | 30 | CONFIGURE_ARGS+= --enable-unix-transport | |
19 | CONFIGURE_ARGS+= --enable-xdmshell | 31 | CONFIGURE_ARGS+= --enable-xdmshell | |
20 | CONFIGURE_ARGS+= --with-appdefaultdir=${PREFIX}/lib/X11/app-defaults | 32 | CONFIGURE_ARGS+= --with-appdefaultdir=${PREFIX}/lib/X11/app-defaults | |
21 | 33 | |||
22 | USE_TOOLS+= pkg-config | 34 | USE_TOOLS+= pkg-config | |
23 | GNU_CONFIGURE= yes | 35 | GNU_CONFIGURE= yes | |
24 | USE_LIBTOOL= yes | 36 | USE_LIBTOOL= yes | |
25 | 37 | |||
26 | RCD_SCRIPTS= xdm | 38 | RCD_SCRIPTS= xdm | |
27 | 39 | |||
28 | BUILD_DEFS+= VARBASE | 40 | BUILD_DEFS+= VARBASE |
@@ -1,22 +1,22 @@ | @@ -1,22 +1,22 @@ | |||
1 | @comment $NetBSD: PLIST,v 1.3 2011/11/09 18:28:40 cheusov Exp $ | 1 | @comment $NetBSD: PLIST,v 1.4 2012/04/29 08:04:56 sbd Exp $ | |
2 | bin/xdm | 2 | bin/xdm | |
3 | bin/xdmshell | 3 | bin/xdmshell | |
4 | lib/X11/app-defaults/Chooser | 4 | lib/X11/app-defaults/Chooser | |
5 | lib/X11/xdm/GiveConsole | 5 | lib/X11/xdm/GiveConsole | |
6 | lib/X11/xdm/TakeConsole | 6 | lib/X11/xdm/TakeConsole | |
7 | lib/X11/xdm/Xaccess | |||
8 | lib/X11/xdm/Xreset | 7 | lib/X11/xdm/Xreset | |
9 | lib/X11/xdm/Xresources | |||
10 | lib/X11/xdm/Xservers | |||
11 | lib/X11/xdm/Xsession | 8 | lib/X11/xdm/Xsession | |
12 | lib/X11/xdm/Xsetup_0 | 9 | lib/X11/xdm/Xsetup_0 | |
13 | lib/X11/xdm/Xstartup | 10 | lib/X11/xdm/Xstartup | |
14 | lib/X11/xdm/Xwilling | 11 | lib/X11/xdm/Xwilling | |
15 | lib/X11/xdm/chooser | 12 | lib/X11/xdm/chooser | |
16 | lib/X11/xdm/libXdmGreet.la | 13 | lib/X11/xdm/libXdmGreet.la | |
17 | lib/X11/xdm/pixmaps/xorg-bw.xpm | 14 | lib/X11/xdm/pixmaps/xorg-bw.xpm | |
18 | lib/X11/xdm/pixmaps/xorg.xpm | 15 | lib/X11/xdm/pixmaps/xorg.xpm | |
19 | lib/X11/xdm/xdm-config | |||
20 | man/man1/xdm.1 | 16 | man/man1/xdm.1 | |
21 | man/man1/xdmshell.1 | 17 | man/man1/xdmshell.1 | |
22 | share/examples/rc.d/xdm | 18 | share/examples/rc.d/xdm | |
19 | share/examples/xdm/Xaccess | |||
20 | share/examples/xdm/Xresources | |||
21 | share/examples/xdm/Xservers | |||
22 | share/examples/xdm/xdm-config |
@@ -1,22 +1,20 @@ | @@ -1,22 +1,20 @@ | |||
1 | #!@RCD_SCRIPTS_SHELL@ | 1 | #!@RCD_SCRIPTS_SHELL@ | |
2 | # | 2 | # | |
3 | # $NetBSD: xdm.sh,v 1.2 2007/08/06 16:43:40 tron Exp $ | 3 | # $NetBSD: xdm.sh,v 1.3 2012/04/29 08:04:56 sbd Exp $ | |
4 | # | 4 | # | |
5 | 5 | |||
6 | # PROVIDE: xdm | 6 | # PROVIDE: xdm | |
7 | # REQUIRE: DAEMON LOGIN wscons | 7 | # REQUIRE: DAEMON LOGIN wscons | |
8 | # KEYWORD: shutdown | 8 | # KEYWORD: shutdown | |
9 | 9 | |||
10 | $_rc_subr_loaded . /etc/rc.subr | 10 | $_rc_subr_loaded . /etc/rc.subr | |
11 | 11 | |||
12 | name="xdm" | 12 | name="xdm" | |
13 | rcvar=$name | 13 | rcvar=$name | |
14 | xdm_config="/etc/X11/${name}/${name}-config" | |||
15 | command="@PREFIX@/bin/${name}" | 14 | command="@PREFIX@/bin/${name}" | |
16 | command_args="-config ${xdm_config}" | 15 | pidfile="@VARBASE@/run/${name}.pid" | |
17 | pidfile="/var/run/${name}.pid" | 16 | required_files="@PKG_SYSCONFDIR@/xdm-config" | |
18 | required_files="${xdm_config}" | |||
19 | extra_commands="reload" | 17 | extra_commands="reload" | |
20 | 18 | |||
21 | load_rc_config $name | 19 | load_rc_config $name | |
22 | run_rc_command "$1" | 20 | run_rc_command "$1" |