1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-28 05:29:48 +00:00
freebsd-ports/finance/ledgersmb/Makefile
2012-11-20 19:06:23 +00:00

43 lines
1.1 KiB
Makefile

# Created by: anarcat@anarcat.ath.cx
# $FreeBSD$
PORTNAME= ledger-smb
PORTVERSION= 1.1.12
PORTREVISION= 1
CATEGORIES= finance perl5
MASTER_SITES= SF/${PORTNAME}/ledgersmb/${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= A double entry accounting system
BUILD_DEPENDS= p5-DBD-Pg>=0:${PORTSDIR}/databases/p5-DBD-Pg
RUN_DEPENDS:= ${BUILD_DEPENDS}
NO_BUILD= yes
USE_PERL5= yes
WRKSRC= ${WRKDIR}/${PORTNAME}
PKGMESSAGE= ${WRKDIR}/pkg-message
post-patch:
@${PERL} -pi -e 's|/usr/bin/perl|${PERL}|' \
`${FIND} ${WRKSRC} -name \*.pl`
@${PERL} -pe 's|%%PREFIX%%|${PREFIX}|g' \
${FILESDIR}/${PORTNAME}-httpd.conf.in \
> ${WRKDIR}/${PORTNAME}-httpd.conf
@${PERL} -pe 's|%%PREFIX%%|${PREFIX}|g' \
${PKGDIR}/pkg-message \
> ${PKGMESSAGE}
do-install:
@cd ${WRKDIR} ; \
${TAR} -cf - ${PORTNAME} | ( cd ${PREFIX} ; ${TAR} xf - )
@cd ${PREFIX}/${PORTNAME} ; \
${CHOWN} -hR ${WWWOWN}:${WWWGRP} * ; \
${CHMOD} 711 users templates css spool
@${INSTALL_DATA} ${WRKDIR}/${PORTNAME}-httpd.conf ${PREFIX}/etc/
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>