blob: 4750eee6f60c2fb5ea0d172971b26795ac0743d2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
# New ports collection makefile for: sql-ledger
# Date created: 2005-10-29
# Whom: lth@FreeBSD.org
#
# $FreeBSD$
#
PORTNAME= sql-ledger
PORTVERSION= 2.8.19
CATEGORIES= finance perl5
MASTER_SITES= http://www.sql-ledger.com/source/ \
http://abacus.sql-ledger.com/source/ \
http://pluto.sql-ledger.com/source/
MAINTAINER= lth@FreeBSD.org
COMMENT= A double entry accounting system
BUILD_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/DBD/Pg.pm:${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}/sql-ledger-httpd.conf.in \
> ${WRKDIR}/sql-ledger-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}/sql-ledger-httpd.conf ${PREFIX}/etc/
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>
|