summaryrefslogtreecommitdiff
path: root/sysutils
diff options
context:
space:
mode:
authorJun Kuriyama <kuriyama@FreeBSD.org>2003-08-17 13:37:53 +0000
committerJun Kuriyama <kuriyama@FreeBSD.org>2003-08-17 13:37:53 +0000
commitb47a55864ff3bfbe80070ec6e1dcfc0c6677b024 (patch)
tree429b05a58cb8966e20fdd3cedd0153a6771f2205 /sysutils
parentFix plist at optional IPv6 configuration. (diff)
Add rc_subr 1.13, common startup and shutdown subroutines used by
scripts. PR: ports/54116 Submitted by: hetzels@westbend.net
Notes
Notes: svn path=/head/; revision=87126
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/Makefile1
-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
5 files changed, 77 insertions, 0 deletions
diff --git a/sysutils/Makefile b/sysutils/Makefile
index 437d4a5f26db..3b4ccce410e0 100644
--- a/sysutils/Makefile
+++ b/sysutils/Makefile
@@ -228,6 +228,7 @@
SUBDIR += pyfind
SUBDIR += qlogtools
SUBDIR += qtpkg
+ SUBDIR += rc_subr
SUBDIR += rclean
SUBDIR += rdate
SUBDIR += rdiff-backup
diff --git a/sysutils/rc_subr/Makefile b/sysutils/rc_subr/Makefile
new file mode 100644
index 000000000000..2a5c9995acdb
--- /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 000000000000..4777231d9fb1
--- /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 000000000000..0aad677b2fa1
--- /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 000000000000..00743ab0225c
--- /dev/null
+++ b/sysutils/rc_subr/pkg-plist
@@ -0,0 +1 @@
+etc/rc.subr