summaryrefslogtreecommitdiff
path: root/packaging/pkgsrc
diff options
context:
space:
mode:
Diffstat (limited to 'packaging/pkgsrc')
-rw-r--r--packaging/pkgsrc/net/radsecproxy/Makefile8
-rw-r--r--packaging/pkgsrc/net/radsecproxy/distinfo5
-rwxr-xr-xpackaging/pkgsrc/net/radsecproxy/files/radsecproxy.sh2
3 files changed, 9 insertions, 6 deletions
diff --git a/packaging/pkgsrc/net/radsecproxy/Makefile b/packaging/pkgsrc/net/radsecproxy/Makefile
index 1c85861..5fac20a 100644
--- a/packaging/pkgsrc/net/radsecproxy/Makefile
+++ b/packaging/pkgsrc/net/radsecproxy/Makefile
@@ -17,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/distinfo b/packaging/pkgsrc/net/radsecproxy/distinfo
deleted file mode 100644
index ce2151d..0000000
--- a/packaging/pkgsrc/net/radsecproxy/distinfo
+++ /dev/null
@@ -1,5 +0,0 @@
-$NetBSD$
-
-SHA1 (radsecproxy-1.0p1.tar.gz) = 7c58ca7b096d29a7333c098bb7ef886fc4080890
-RMD160 (radsecproxy-1.0p1.tar.gz) = 0c93cd5e6d46271984d36794bd0de5beb8004b19
-Size (radsecproxy-1.0p1.tar.gz) = 96827 bytes
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}"