summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkolla <kolla>2008-06-04 00:29:38 +0000
committerkolla <kolla@e88ac4ed-0b26-0410-9574-a7f39faa03bf>2008-06-04 00:29:38 +0000
commit49e80a5157d2887d6cea9ccca887d3a15da5de6e (patch)
treed524be59f043997f46b837b49b32bffa92e6d13f
parentfa53d9dcff3326ea7fb3fd1c2c1a57fcc3cc9dbf (diff)
NetBSD-fikser:
* Bruker do-patch med sed for å endre default konfigfil fra /etc/radsecproxy.conf til /usr/pkg/etc/radsecproxy.conf * Endret i rc.d-script til å droppe "-c /usr/pkg/etc/radsecproxy.conf" siden det nå er default. * Kompilér og installér catgconf som radsecproxy-catgconf, catgconf høres ut som det har noe med GNOME gconf å gjøre * distinfo for trunk er meningsløs likevel, man får heller kjøre "make makesum" manuelt git-svn-id: https://svn.testnett.uninett.no/radsecproxy/branches/release-1.1@278 e88ac4ed-0b26-0410-9574-a7f39faa03bf
-rw-r--r--packaging/pkgsrc/net/radsecproxy/Makefile10
-rwxr-xr-xpackaging/pkgsrc/net/radsecproxy/files/radsecproxy.sh2
2 files changed, 9 insertions, 3 deletions
diff --git a/packaging/pkgsrc/net/radsecproxy/Makefile b/packaging/pkgsrc/net/radsecproxy/Makefile
index 716f316..8f1884a 100644
--- a/packaging/pkgsrc/net/radsecproxy/Makefile
+++ b/packaging/pkgsrc/net/radsecproxy/Makefile
@@ -8,8 +8,6 @@ MAINTAINER= netbsd@kolla.no
HOMEPAGE= http://software.uninett.no/radsecproxy/
COMMENT= RADIUS proxy that also supports RadSec
-# WRKSRC= ${WRKDIR}/radsecproxy-1.0p1
-
EGDIR= ${PREFIX}/share/examples/radsecproxy
CONF_FILES= ${EGDIR}/radsecproxy.conf ${PKG_SYSCONFDIR}/radsecproxy.conf
@@ -19,10 +17,18 @@ RCD_SCRIPTS= radsecproxy
INSTALLATION_DIRS= sbin ${PKGMANDIR}/man1 ${PKGMANDIR}/man5 ${EGDIR}
+do-patch:
+ ${SED} 's%\(^all: .*\)%& catgconf%1' ${WRKSRC}/Makefile > ${WRKSRC}/Makefile.tmp
+ mv ${WRKSRC}/Makefile.tmp ${WRKSRC}/Makefile
+ for f in ${WRKSRC}/* ; do \
+ ${SED} 's%\(/etc/radsecproxy.conf\)%/usr/pkg&%g' < $${f} > $${f}.tmp ; mv $${f}.tmp $${f} ; \
+ done
+
do-install:
${INSTALL_MAN} ${WRKSRC}/radsecproxy.1 ${PREFIX}/${PKGMANDIR}/man1
${INSTALL_MAN} ${WRKSRC}/radsecproxy.conf.5 ${PREFIX}/${PKGMANDIR}/man5
${INSTALL_PROGRAM} ${WRKSRC}/radsecproxy ${PREFIX}/sbin
+ ${INSTALL_PROGRAM} ${WRKSRC}/catgconf ${PREFIX}/sbin/radsecproxy-catgconf
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/radsecproxy
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/radsecproxy
${INSTALL_DATA} ${WRKSRC}/AUTHORS ${PREFIX}/share/doc/radsecproxy
diff --git a/packaging/pkgsrc/net/radsecproxy/files/radsecproxy.sh b/packaging/pkgsrc/net/radsecproxy/files/radsecproxy.sh
index 8f394f6..2639b33 100755
--- a/packaging/pkgsrc/net/radsecproxy/files/radsecproxy.sh
+++ b/packaging/pkgsrc/net/radsecproxy/files/radsecproxy.sh
@@ -12,7 +12,7 @@ fi
name="radsecproxy"
rcvar=${name}
command="/usr/pkg/sbin/${name}"
-command_args="-c /usr/pkg/etc/${name}.conf"
+command_args=""
restart_precmd="${command} -p ${command_args}"