aboutsummaryrefslogtreecommitdiff
path: root/finance/sql-ledger/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'finance/sql-ledger/Makefile')
-rw-r--r--finance/sql-ledger/Makefile48
1 files changed, 48 insertions, 0 deletions
diff --git a/finance/sql-ledger/Makefile b/finance/sql-ledger/Makefile
new file mode 100644
index 000000000000..efb7d097d2d5
--- /dev/null
+++ b/finance/sql-ledger/Makefile
@@ -0,0 +1,48 @@
+# New ports collection makefile for: sql-ledger
+# Date created: 2005-10-29
+# Whom: lth@FreeBSD.org
+#
+# $FreeBSD$
+#
+
+PORTNAME= sql-ledger
+PORTVERSION= 2.6.2
+CATEGORIES= finance perl5
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \
+ http://www.sql-ledger.com/source/ \
+ http://abacus.sql-ledger.com/source/
+MASTER_SITE_SUBDIR= ${PORTNAME}
+
+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_PERL= 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>