View | Details | Raw Unified | Return to bug 172695
Collapse All | Expand All

(-)Makefile (-12 / +11 lines)
Lines 1-9 Link Here
1
# New ports collection makefile for:	rubygem-puppet
1
# Created by:	Tomoyuki Sakurai <cherry@trombik.mine.nu>
2
# Date created:		2007-03-03
3
# Whom:			Tomoyuki Sakurai <cherry@trombik.mine.nu>
4
#
5
# $FreeBSD$
2
# $FreeBSD$
6
#
7
3
8
PORTNAME=	puppet
4
PORTNAME=	puppet
9
PORTVERSION=	2.6.17
5
PORTVERSION=	2.6.17
Lines 17-23 Link Here
17
		rubygem-ruby-augeas>=0:${PORTSDIR}/textproc/rubygem-augeas \
13
		rubygem-ruby-augeas>=0:${PORTSDIR}/textproc/rubygem-augeas \
18
		${RUBY_ARCHLIBDIR}/iconv.so:${PORTSDIR}/converters/ruby-iconv
14
		${RUBY_ARCHLIBDIR}/iconv.so:${PORTSDIR}/converters/ruby-iconv
19
15
20
CONFLICTS=	puppet-[0-9]*
16
LATEST_LINK=	puppet26
17
CONFLICTS=	puppet-2.7* puppet-3*
21
18
22
NO_BUILD=	yes
19
NO_BUILD=	yes
23
USE_RUBY=	yes
20
USE_RUBY=	yes
Lines 39-54 Link Here
39
MAN8=	filebucket.8 pi.8 puppet.8 puppetca.8 puppetd.8 \
36
MAN8=	filebucket.8 pi.8 puppet.8 puppetca.8 puppetd.8 \
40
	puppetdoc.8 puppetmasterd.8 puppetrun.8 ralsh.8 puppetqd.8
37
	puppetdoc.8 puppetmasterd.8 puppetrun.8 ralsh.8 puppetqd.8
41
38
42
OPTIONS=	MONGREL		"Run puppet server as a mongrel service"	Off \
39
OPTIONS_DEFINE=		MONGREL PACKAGE_ORIGIN
43
		PACKAGE_ORIGIN	"Use port origin as package name"		On
40
OPTIONS_DEFAULT=	PACKAGE_ORIGIN
41
MONGREL_DESC=		Run puppet server as a mongrel service
42
PACKAGE_ORIGIN_DESC=	Use port origin as package name
44
43
45
.include <bsd.port.options.mk>
44
.include <bsd.port.options.mk>
46
45
47
.if defined(WITH_MONGREL)
46
.if ${PORT_OPTIONS:MMONGREL}
48
RUN_DEPENDS+=	rubygem-mongrel>=0:${PORTSDIR}/www/rubygem-mongrel
47
RUN_DEPENDS+=	rubygem-mongrel>=0:${PORTSDIR}/www/rubygem-mongrel
49
.endif
48
.endif
50
49
51
.if defined(WITH_PACKAGE_ORIGIN)
50
.if ${PORT_OPTIONS:MPACKAGE_ORIGIN}
52
EXTRA_PATCHES+=	${FILESDIR}/optpatch-package_origin
51
EXTRA_PATCHES+=	${FILESDIR}/optpatch-package_origin
53
RUN_DEPENDS+=	${RUBY_SITEARCHLIBDIR}/bz2.so:${PORTSDIR}/archivers/ruby-bz2
52
RUN_DEPENDS+=	${RUBY_SITEARCHLIBDIR}/bz2.so:${PORTSDIR}/archivers/ruby-bz2
54
.endif
53
.endif
Lines 91-101 Link Here
91
	@${FIND} ${RUBY_SITELIBDIR}/${PORTNAME} -type d | ${SORT} -r | \
90
	@${FIND} ${RUBY_SITELIBDIR}/${PORTNAME} -type d | ${SORT} -r | \
92
		${SED} 's,^${PREFIX}/,@dirrm ,' >> ${TMPPLIST}
91
		${SED} 's,^${PREFIX}/,@dirrm ,' >> ${TMPPLIST}
93
	@${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
92
	@${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
94
.if !defined(NOPORTDOCS)
93
.if ${PORT_OPTIONS:MDOCS}
95
	${INSTALL} -d ${DOCSDIR}
94
	${INSTALL} -d ${DOCSDIR}
96
	cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
95
	cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
97
.endif
96
.endif
98
.if !defined(NOPORTEXAMPLES)
97
.if ${PORT_OPTIONS:MEXAMPLES}
99
	cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} . ${EXAMPLESDIR}
98
	cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} . ${EXAMPLESDIR}
100
.endif
99
.endif
101
	@${CAT} ${PKGMESSAGE}
100
	@${CAT} ${PKGMESSAGE}

Return to bug 172695