aboutsummaryrefslogtreecommitdiff
path: root/sysutils/rc_subr/Makefile
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/rc_subr/Makefile
parent76f34ce632e97edd9f0ac31516d9cbc88f60ef1e (diff)
downloadports-b47a55864ff3bfbe80070ec6e1dcfc0c6677b024.tar.gz
ports-b47a55864ff3bfbe80070ec6e1dcfc0c6677b024.zip
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/rc_subr/Makefile')
-rw-r--r--sysutils/rc_subr/Makefile67
1 files changed, 67 insertions, 0 deletions
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>