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

(-)bacon/Makefile (-10 / +10 lines)
Lines 12-33 Link Here
12
12
13
MAINTAINER=	jmrobins@samurai.ruin.org
13
MAINTAINER=	jmrobins@samurai.ruin.org
14
14
15
USE_PERL5=	YES
15
USE_PERL5=	yes
16
NO_BUILD=	yes
16
17
17
DIST=		bacon.pl
18
pre-patch:
18
19
	@${PERL} -pi.orig -e 's|${LOCALBASE}/bin/perl|/usr/bin/perl|' \
19
do-build:
20
		${WRKSRC}/bacon.pl
20
		@cd ${WRKSRC}; ${MV} ${DIST} ${DIST}.orig; \
21
		${SED} -e 's;^#! */usr/local/bin/perl *;#!${PERL5};' \
22
			${DIST}.orig > ${DIST}
23
21
24
do-install:
22
do-install:
25
	${MKDIR} ${PREFIX}/www/cgi-bin
23
	${MKDIR} ${PREFIX}/www/cgi-bin
26
	${INSTALL_SCRIPT} ${WRKSRC}/bacon.pl ${PREFIX}/www/cgi-bin/bacon.pl
24
	${INSTALL_SCRIPT} ${WRKSRC}/bacon.pl ${PREFIX}/www/cgi-bin/bacon.pl
27
25
28
post-install:
26
post-install:
29
	${MKDIR} ${PREFIX}/share/doc/bacon/
27
.if !defined(NOPORTDOCS)
30
	${INSTALL_DATA} ${WRKSRC}/INSTALL ${PREFIX}/share/doc/bacon/INSTALL
28
	@${MKDIR} ${DOCSDIR}
31
	@${CAT} ${PKGMESSAGE}
29
	@${INSTALL_DATA} ${WRKSRC}/INSTALL ${DOCSDIR}
30
.endif
31
	@${SED} -e "s|INSTALL|${DOCSDIR}/INSTALL|" ${PKGMESSAGE}
32
32
33
.include <bsd.port.mk>
33
.include <bsd.port.mk>
(-)bacon/pkg-message (-1 / +1 lines)
Lines 1-6 Link Here
1
1
2
---------------------------------------------------------------------
2
---------------------------------------------------------------------
3
Please read the ${PREFIX}/share/doc/bacon/INSTALL file for info on
3
Please read the INSTALL file for info on
4
configuring this program."
4
configuring this program."
5
---------------------------------------------------------------------
5
---------------------------------------------------------------------
6
6
(-)bacon/pkg-plist (-2 / +4 lines)
Lines 1-3 Link Here
1
www/cgi-bin/bacon.pl
1
www/cgi-bin/bacon.pl
2
share/doc/bacon/INSTALL
2
%%PORTDOCS%%share/doc/bacon/INSTALL
3
@dirrm share/doc/bacon
3
%%PORTDOCS%%@dirrm share/doc/bacon
4
@unexec rmdir %D/www/cgi-bin 2>/dev/null || true
5
@unexec rmdir %D/www 2>/dev/null || true

Return to bug 29481