summaryrefslogtreecommitdiffstats
path: root/sysutils/rc_subr
diff options
context:
space:
mode:
authorkuriyama <kuriyama@FreeBSD.org>2003-08-17 13:37:53 +0000
committerkuriyama <kuriyama@FreeBSD.org>2003-08-17 13:37:53 +0000
commitadbb10e891fd1fe42404cea6799b1dd803eee290 (patch)
treeaa390de18b62bef68622d259992a8f2f36b9af9a /sysutils/rc_subr
parentb64b70134ad52b054c51c4dbe10069e7c7739b37 (diff)
downloadFreeBSD-ports-adbb10e891fd1fe42404cea6799b1dd803eee290.zip
FreeBSD-ports-adbb10e891fd1fe42404cea6799b1dd803eee290.tar.gz
Add rc_subr 1.13, common startup and shutdown subroutines used by
scripts. PR: ports/54116 Submitted by: hetzels@westbend.net
Diffstat (limited to 'sysutils/rc_subr')
-rw-r--r--sysutils/rc_subr/Makefile67
-rw-r--r--sysutils/rc_subr/distinfo1
-rw-r--r--sysutils/rc_subr/pkg-descr7
-rw-r--r--sysutils/rc_subr/pkg-plist1
4 files changed, 76 insertions, 0 deletions
diff --git a/sysutils/rc_subr/Makefile b/sysutils/rc_subr/Makefile
new file mode 100644
index 0000000..2a5c999
--- /dev/null
+++ b/sysutils/rc_subr/Makefile
@@ -0,0 +1,67 @@
+# New ports collection makefile for: rc_subr
+# Date created: July 4, 2003
+# Whom: hetzels@westbend.net
+#
+# $FreeBSD$
+#
+
+PORTNAME= rc_subr
+PORTVERSION= 1.13
+CATEGORIES= sysutils
+MASTER_SITES= ${MASTER_SITE_LOCAL} \
+ ftp://ftp.westbend.net/pub/FreeBSD/ports/local-distfiles/%SUBDIR%/
+MASTER_SITE_SUBDIR= rcNG
+
+MAINTAINER= ports@freebsd.org
+COMMENT= Common startup and shutdown subroutines used by scripts
+
+NO_BUILD= yes
+
+MAN8= rc.subr.8
+
+do-install:
+ ${INSTALL_DATA} -m 644 ${WRKSRC}/rc.subr ${PREFIX}/etc/
+ ${INSTALL_MAN} ${WRKSRC}/rc.subr.8 ${PREFIX}/man/man8
+
+.include <bsd.port.pre.mk>
+CVS_CMD?= cvs -z3
+CVS_SITES?= :pserver:anoncvs@anoncvs.FreeBSD.org:/home/ncvs \
+ :pserver:anoncvs@anoncvs.de.FreeBSD.org:/home/ncvs \
+ :pserver:anoncvs@anoncvs2.de.FreeBSD.org:/home/ncvs \
+ :pserver:anoncvs@anoncvs.jp.FreeBSD.org:/home/ncvs
+
+CVS_FILE1= src/etc/rc.subr
+CVS_FILE2= src/share/man/man8/rc.subr.8
+CVS_MANVER= 1.3
+
+#
+# CVS checkout stuff mostly stolen from security/openssh-askpass port by
+# kris@freebsd.org
+#
+# NOTE: Don't forget to type 'anoncvs' for password
+#
+tarball:
+ ${MKDIR} ${DISTDIR}/${PKGNAME} && \
+ cd ${DISTDIR}/${PKGNAME}; \
+ for CVS_SITE in ${CVS_SITES}; do \
+ ${ECHO_MSG} ">> Attempting to check out from $${CVS_SITE}."; \
+ if ${CVS_CMD} -d $${CVS_SITE} login ; then \
+ if ${CVS_CMD} -d $${CVS_SITE} co -r "${PORTVERSION}" \
+ ${CVS_FILE1}; then \
+ ${CVS_CMD} -d $${CVS_SITE} co -r ${CVS_MANVER} ${CVS_FILE2}; \
+ cd ${DISTDIR}; \
+ ${ECHO_MSG} ">> Creating dist tarball in ${DISTDIR}"; \
+ ${ECHO_MSG} ">> \"${PKGNAME}.tar.gz\"."; \
+ ${MV} ${PKGNAME}/${CVS_FILE1} ${PKGNAME}; \
+ ${MV} ${PKGNAME}/${CVS_FILE2} ${PKGNAME}; \
+ ${RM} -rf ${PKGNAME}/src; \
+ ${TAR} -czf ${PKGNAME}.tar.gz ${PKGNAME}; \
+ exit; \
+ fi \
+ fi \
+ done; \
+ ${RMDIR} ${DISTDIR}/${PKGNAME}; \
+ ${ECHO_MSG} ">> CVS checkout failed."; \
+ exit 1;
+
+.include <bsd.port.post.mk>
diff --git a/sysutils/rc_subr/distinfo b/sysutils/rc_subr/distinfo
new file mode 100644
index 0000000..4777231
--- /dev/null
+++ b/sysutils/rc_subr/distinfo
@@ -0,0 +1 @@
+MD5 (rc_subr-1.13.tar.gz) = 54803c0c3c702f174f3885bdd2f1f55c
diff --git a/sysutils/rc_subr/pkg-descr b/sysutils/rc_subr/pkg-descr
new file mode 100644
index 0000000..0aad677
--- /dev/null
+++ b/sysutils/rc_subr/pkg-descr
@@ -0,0 +1,7 @@
+With the change to a new rc system in FreeBSD 5.x, common routines for
+starting, stopping, and restarting daemons was placed into /etc/rc.subr.
+this makes it easier to write new startup/shutdown scripts and to have
+them ordered correctly with rcorder.
+
+While FreeBSD < 5.x won't be able to take advantage of rcorder. We can
+take advantage of the simplified startup/shutdown scripts by using rc.subr.
diff --git a/sysutils/rc_subr/pkg-plist b/sysutils/rc_subr/pkg-plist
new file mode 100644
index 0000000..00743ab0
--- /dev/null
+++ b/sysutils/rc_subr/pkg-plist
@@ -0,0 +1 @@
+etc/rc.subr
OpenPOWER on IntegriCloud