aboutsummaryrefslogtreecommitdiff
path: root/sysutils/radmind
diff options
context:
space:
mode:
authorSergey Matveychuk <sem@FreeBSD.org>2004-08-20 13:02:46 +0000
committerSergey Matveychuk <sem@FreeBSD.org>2004-08-20 13:02:46 +0000
commitcca4f8e73b64077757cdef22319310a4412a3d19 (patch)
tree3bc199cef8c4535ea18d076ebd056513d4c6e69c /sysutils/radmind
parent9d81667d4c22a163b1a0bca562dff6dfe9708a05 (diff)
downloadports-cca4f8e73b64077757cdef22319310a4412a3d19.tar.gz
ports-cca4f8e73b64077757cdef22319310a4412a3d19.zip
- Update to 1.3.1
- Add rcNG startup script PR: ports/70636 Submitted by: maintainer
Notes
Notes: svn path=/head/; revision=116759
Diffstat (limited to 'sysutils/radmind')
-rw-r--r--sysutils/radmind/Makefile30
-rw-r--r--sysutils/radmind/distinfo4
-rw-r--r--sysutils/radmind/files/radmind.sh37
-rw-r--r--sysutils/radmind/pkg-plist4
4 files changed, 69 insertions, 6 deletions
diff --git a/sysutils/radmind/Makefile b/sysutils/radmind/Makefile
index b6d37bd87249..036e18c89bfe 100644
--- a/sysutils/radmind/Makefile
+++ b/sysutils/radmind/Makefile
@@ -6,19 +6,22 @@
#
PORTNAME= radmind
-PORTVERSION= 1.3.0
+PORTVERSION= 1.3.1
CATEGORIES= sysutils
MASTER_SITES= http://rsug.itd.umich.edu/software/radmind/files/
-#DISTNAME= radmind-1.3.0-rc2
EXTRACT_SUFX= .tgz
MAINTAINER= paul@aps.org
COMMENT= Utility for administering filesystem changes
USE_OPENSSL= yes
+USE_RC_SUBR= yes
HAS_CONFIGURE= yes
-CONFIGURE_ARGS= --prefix=${PREFIX}
+
+RADMIND_BASE_DIR?= /var/radmind
+
+CONFIGURE_ARGS= --prefix=${PREFIX} --with-radminddir=${RADMIND_BASE_DIR}
MAN1= fsdiff.1 ktcheck.1 lapply.1 lcksum.1 lcreate.1 lfdiff.1 \
lmerge.1 twhich.1
@@ -26,12 +29,31 @@ MAN5= applefile.5
MAN8= radmind.8
DOCS= COPYRIGHT README SPEC
+.include <bsd.port.pre.mk>
+
+RC_SUBR?= ${DESTDIR}/etc/rc.subr
+RC_DIR= ${PREFIX}/etc/rc.d
+RC_SUFX= .sh
+
+SED_SCRIPT+= -e 's,%%RC_SUBR%%,${RC_SUBR},g' \
+ -e 's,%%PREFIX%%,${PREFIX},g' \
+ -e 's,%%RADMIND_BASE_DIR%%,${RADMIND_BASE_DIR},g' \
+
+PLIST_SUB+= RC_DIR=${RC_DIR} \
+ RC_SUFX=${RC_SUFX} \
+ RADMIND_BASE_DIR=${RADMIND_BASE_DIR}
+
+post-build:
+ @${SED} ${SED_SCRIPT} ${FILESDIR}/radmind.sh >${WRKDIR}/radmind.sh
+
post-install:
+ @${INSTALL_SCRIPT} ${WRKDIR}/radmind.sh ${RC_DIR}/radmind${RC_SUFX}
# Ugly hack to remove generated man pages
${RM} -rf ${WRKSRC}/tmp
+
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/sysutils/radmind/distinfo b/sysutils/radmind/distinfo
index 154481a576b9..f91a3ebf465b 100644
--- a/sysutils/radmind/distinfo
+++ b/sysutils/radmind/distinfo
@@ -1,2 +1,2 @@
-MD5 (radmind-1.3.0.tgz) = 46ef7b08d8e5304751db9d2e45e2488c
-SIZE (radmind-1.3.0.tgz) = 508114
+MD5 (radmind-1.3.1.tgz) = c1a1c67bb9ec254db3432be2ee6d8dc5
+SIZE (radmind-1.3.1.tgz) = 515023
diff --git a/sysutils/radmind/files/radmind.sh b/sysutils/radmind/files/radmind.sh
new file mode 100644
index 000000000000..c010826a5024
--- /dev/null
+++ b/sysutils/radmind/files/radmind.sh
@@ -0,0 +1,37 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+
+# PROVIDE: radmind
+# REQUIRE: DAEMON
+# KEYWORD: FreeBSD shutdown
+
+#
+# Add the following lines to /etc/rc.conf to enable radmind:
+#
+#radmind_enable="YES"
+#
+# You may also override the default flags:
+#
+#radmind_flags="-D /var/radmind -m 5 -u 077 -Llocal7 -w 0"
+#
+# See radmind(8) for flags
+#
+
+. %%RC_SUBR%%
+
+name=radmind
+rcvar=`set_rcvar`
+
+command=%%PREFIX%%/sbin/radmind
+command_args=""
+required_files=/var/radmind/config
+
+# set defaults
+
+radmind_enable=${radmind_enable:-"NO"}
+radmind_flags=${radmind_flags:-"-D /var/radmind -m 5 -u 077 -Llocal7 -w 0"}
+
+load_rc_config ${name}
+run_rc_command "$1"
diff --git a/sysutils/radmind/pkg-plist b/sysutils/radmind/pkg-plist
index 4d3431a2e569..ac365996419d 100644
--- a/sysutils/radmind/pkg-plist
+++ b/sysutils/radmind/pkg-plist
@@ -5,9 +5,13 @@ bin/lcksum
bin/lcreate
bin/lfdiff
bin/lmerge
+bin/ra.sh
bin/twhich
+etc/rc.d/radmind.sh
sbin/radmind
%%PORTDOCS%%%%DOCSDIR%%/COPYRIGHT
%%PORTDOCS%%%%DOCSDIR%%/README
%%PORTDOCS%%%%DOCSDIR%%/SPEC
%%PORTDOCS%%@dirrm %%DOCSDIR%%
+@unexec rmdir %%RADMIND_BASE_DIR%%/cert 2>/dev/null || true
+@unexec rmdir %%RADMIND_BASE_DIR%% 2>/dev/null || true