svn commit: r327257 - head/devel/cvsd
Olli Hauer
ohauer at FreeBSD.org
Sat Sep 14 09:59:28 UTC 2013
Author: ohauer
Date: Sat Sep 14 09:59:28 2013
New Revision: 327257
URL: http://svnweb.freebsd.org/changeset/ports/327257
Log:
- fix r327153, cvs is only required
.if ${OSVERSION} > 1000000
- since I'm here do some minor cleanup
Modified:
head/devel/cvsd/Makefile
Modified: head/devel/cvsd/Makefile
==============================================================================
--- head/devel/cvsd/Makefile Sat Sep 14 09:41:33 2013 (r327256)
+++ head/devel/cvsd/Makefile Sat Sep 14 09:59:28 2013 (r327257)
@@ -13,8 +13,6 @@ COMMENT= CVS pserver daemon
EXTRA_PATCHES= ${FILESDIR}/extra-cvsd-buildroot.in
USES= perl5
-BUILD_DEPENDS= cvs:${PORTSDIR}/devel/cvs
-RUN_DEPENDS= cvs:${PORTSDIR}/devel/cvs
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-libwrap
MAKE_ARGS= ACLOCAL="${TRUE}" AUTOCONF="${TRUE}" AUTOMAKE="${TRUE}" \
@@ -25,9 +23,17 @@ MAN8= cvsd.8 cvsd-buginfo.8 cvsd-buildr
PORTDOCS= FAQ NEWS README
PLIST_FILES= etc/cvsd/cvsd.conf.sample sbin/cvsd sbin/cvsd-buginfo \
sbin/cvsd-buildroot sbin/cvsd-passwd
-PLIST_DIRS= etc/cvsd
+PLIST_DIRSTRY= etc/cvsd
USE_RC_SUBR= cvsd
+OPTIONS_DEFINE= DOCS
+.include <bsd.port.options.mk>
+
+.if ${OSVERSION} > 1000000
+BUILD_DEPENDS= cvs:${PORTSDIR}/devel/cvs
+RUN_DEPENDS= cvs:${PORTSDIR}/devel/cvs
+.endif
+
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/cvsd ${PREFIX}/sbin/cvsd
.for f in cvsd-buginfo cvsd-buildroot cvsd-passwd
@@ -41,11 +47,9 @@ do-install:
.for FILE in ${MAN8}
${INSTALL_MAN} ${WRKSRC}/${FILE} ${MAN8PREFIX}/man/man8
.endfor
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
-.for docs in ${PORTDOCS}
- ${INSTALL_DATA} ${WRKSRC}/${docs} ${DOCSDIR}
-.endfor
+ ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
.endif
@${CAT} ${PKGMESSAGE}
More information about the svn-ports-head
mailing list