diff options
-rw-r--r-- | net-mgmt/ipcad/Makefile | 11 | ||||
-rw-r--r-- | net-mgmt/ipcad/distinfo | 2 | ||||
-rw-r--r-- | net-mgmt/ipcad/files/ipcad.sh.tmpl | 19 | ||||
-rw-r--r-- | net-mgmt/ipcad/pkg-message | 7 | ||||
-rw-r--r-- | net/ipcad/Makefile | 11 | ||||
-rw-r--r-- | net/ipcad/distinfo | 2 | ||||
-rw-r--r-- | net/ipcad/files/ipcad.sh.tmpl | 19 | ||||
-rw-r--r-- | net/ipcad/pkg-message | 7 |
8 files changed, 70 insertions, 8 deletions
diff --git a/net-mgmt/ipcad/Makefile b/net-mgmt/ipcad/Makefile index d64f1e47aabd..1507211d5c26 100644 --- a/net-mgmt/ipcad/Makefile +++ b/net-mgmt/ipcad/Makefile @@ -6,20 +6,25 @@ # PORTNAME= ipcad -PORTVERSION= 2.7.1 +PORTVERSION= 2.8.2 CATEGORIES= net MASTER_SITES= http://www.spelio.net.ru/soft/ MAINTAINER= vlm@spelio.net.ru -COMMENT= IP accounting daemon simulating Cisco ip accounting +COMMENT= IP accounting daemon with Cisco-like ip accounting export MANCOMPRESSED= no MAN5= ipcad.conf.5 MAN8= ipcad.8 post-install: - strip ${PREFIX}/bin/ipcad + @${STRIP_CMD} ${PREFIX}/bin/ipcad + @${SED} -e "s=!!PREFIX!!=${PREFIX}=g" \ + < ${FILESDIR}/ipcad.sh.tmpl \ + > ${PREFIX}/etc/rc.d/ipcad.sh + @${CHOWN} ${BINOWN}:${BINGRP} ${PREFIX}/etc/rc.d/ipcad.sh ${INSTALL_MAN} ${WRKSRC}/ipcad.8 ${PREFIX}/man/man8 ${INSTALL_MAN} ${WRKSRC}/ipcad.conf.5 ${PREFIX}/man/man5 + @${CAT} ${PKGMESSAGE} .include <bsd.port.mk> diff --git a/net-mgmt/ipcad/distinfo b/net-mgmt/ipcad/distinfo index cd2179d5514a..9b4fb2781ca2 100644 --- a/net-mgmt/ipcad/distinfo +++ b/net-mgmt/ipcad/distinfo @@ -1 +1 @@ -MD5 (ipcad-2.7.1.tar.gz) = bfbb0b4706a9cd8cffa34213f8a709e3 +MD5 (ipcad-2.8.2.tar.gz) = cf1cf2ef6144ea63b7287b676e8d9b14 diff --git a/net-mgmt/ipcad/files/ipcad.sh.tmpl b/net-mgmt/ipcad/files/ipcad.sh.tmpl new file mode 100644 index 000000000000..6fda2ff21dce --- /dev/null +++ b/net-mgmt/ipcad/files/ipcad.sh.tmpl @@ -0,0 +1,19 @@ +#!/bin/sh +# ipcad startup script example. + +case "$1" in +start) + if [ -x !!PREFIX!!/bin/ipcad -a -f !!PREFIX!!/etc/ipcad.conf ]; then + !!PREFIX!!/bin/ipcad -rds && echo -n ' ipcad' + fi + ;; +stop) + /usr/bin/killall ipcad && /bin/echo -n ' ipcad' + ;; +*) + /bin/echo "Usage: `basename $0` {start|stop}" >&2 + exit 64 + ;; +esac + +exit 0 diff --git a/net-mgmt/ipcad/pkg-message b/net-mgmt/ipcad/pkg-message new file mode 100644 index 000000000000..60ecea5cd2d1 --- /dev/null +++ b/net-mgmt/ipcad/pkg-message @@ -0,0 +1,7 @@ +=========================================================================== + +To configure this package, adjust ${PREFIX}/etc/ipcad.conf from +${PREFIX}/etc/ipcad.conf.sample, then start "ipcad -rds" +You should be able to "rsh localhost sh ip accounting" after that + +=========================================================================== diff --git a/net/ipcad/Makefile b/net/ipcad/Makefile index d64f1e47aabd..1507211d5c26 100644 --- a/net/ipcad/Makefile +++ b/net/ipcad/Makefile @@ -6,20 +6,25 @@ # PORTNAME= ipcad -PORTVERSION= 2.7.1 +PORTVERSION= 2.8.2 CATEGORIES= net MASTER_SITES= http://www.spelio.net.ru/soft/ MAINTAINER= vlm@spelio.net.ru -COMMENT= IP accounting daemon simulating Cisco ip accounting +COMMENT= IP accounting daemon with Cisco-like ip accounting export MANCOMPRESSED= no MAN5= ipcad.conf.5 MAN8= ipcad.8 post-install: - strip ${PREFIX}/bin/ipcad + @${STRIP_CMD} ${PREFIX}/bin/ipcad + @${SED} -e "s=!!PREFIX!!=${PREFIX}=g" \ + < ${FILESDIR}/ipcad.sh.tmpl \ + > ${PREFIX}/etc/rc.d/ipcad.sh + @${CHOWN} ${BINOWN}:${BINGRP} ${PREFIX}/etc/rc.d/ipcad.sh ${INSTALL_MAN} ${WRKSRC}/ipcad.8 ${PREFIX}/man/man8 ${INSTALL_MAN} ${WRKSRC}/ipcad.conf.5 ${PREFIX}/man/man5 + @${CAT} ${PKGMESSAGE} .include <bsd.port.mk> diff --git a/net/ipcad/distinfo b/net/ipcad/distinfo index cd2179d5514a..9b4fb2781ca2 100644 --- a/net/ipcad/distinfo +++ b/net/ipcad/distinfo @@ -1 +1 @@ -MD5 (ipcad-2.7.1.tar.gz) = bfbb0b4706a9cd8cffa34213f8a709e3 +MD5 (ipcad-2.8.2.tar.gz) = cf1cf2ef6144ea63b7287b676e8d9b14 diff --git a/net/ipcad/files/ipcad.sh.tmpl b/net/ipcad/files/ipcad.sh.tmpl new file mode 100644 index 000000000000..6fda2ff21dce --- /dev/null +++ b/net/ipcad/files/ipcad.sh.tmpl @@ -0,0 +1,19 @@ +#!/bin/sh +# ipcad startup script example. + +case "$1" in +start) + if [ -x !!PREFIX!!/bin/ipcad -a -f !!PREFIX!!/etc/ipcad.conf ]; then + !!PREFIX!!/bin/ipcad -rds && echo -n ' ipcad' + fi + ;; +stop) + /usr/bin/killall ipcad && /bin/echo -n ' ipcad' + ;; +*) + /bin/echo "Usage: `basename $0` {start|stop}" >&2 + exit 64 + ;; +esac + +exit 0 diff --git a/net/ipcad/pkg-message b/net/ipcad/pkg-message new file mode 100644 index 000000000000..60ecea5cd2d1 --- /dev/null +++ b/net/ipcad/pkg-message @@ -0,0 +1,7 @@ +=========================================================================== + +To configure this package, adjust ${PREFIX}/etc/ipcad.conf from +${PREFIX}/etc/ipcad.conf.sample, then start "ipcad -rds" +You should be able to "rsh localhost sh ip accounting" after that + +=========================================================================== |