freebsd-ports/sysutils/rc_subr/Makefile
Edwin Groothuis 80359db175 Update to revision 1.16 of rc.subr
Update the sysutils/rc_subr port to use revision 1.16 as
	it fixes several problems with the rc.subr script.

	see the cvs notes starting from revision 1.14 to 1.16:

PR:		ports/56093
Submitted by:	Scot W. Hetzel <hetzelsw@westbend.net>
2003-09-08 09:59:30 +00:00

67 lines
1.9 KiB
Makefile

# New ports collection makefile for: rc_subr
# Date created: July 4, 2003
# Whom: hetzels@westbend.net
#
# $FreeBSD$
#
PORTNAME= rc_subr
PORTVERSION= 1.16
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>