aboutsummaryrefslogtreecommitdiffstats
path: root/finance/ledgersmb/Makefile
diff options
context:
space:
mode:
authoredwin <edwin@FreeBSD.org>2007-09-07 12:54:24 +0800
committeredwin <edwin@FreeBSD.org>2007-09-07 12:54:24 +0800
commitdf812363d11c83167e0bd2b773ecb1804646638e (patch)
treee1e6407e3915746d89248025b561ab44fbb10e8e /finance/ledgersmb/Makefile
parenta6ec888050d7db5cc588c8a2c142e2e7e18e39eb (diff)
downloadfreebsd-ports-gnome-df812363d11c83167e0bd2b773ecb1804646638e.tar.gz
freebsd-ports-gnome-df812363d11c83167e0bd2b773ecb1804646638e.tar.zst
freebsd-ports-gnome-df812363d11c83167e0bd2b773ecb1804646638e.zip
new port: finance/ledgersmb
LedgerSMB is a double entry accounting system, written in Perl. Accounting data is stored in a PostgreSQL Server, for the display any text or GUI browser can be used. WWW: http://www.ledgersmb.org/ PR: ports/112248 Submitted by: Antoine Beaupre <anarcat@koumbit.org>
Diffstat (limited to 'finance/ledgersmb/Makefile')
-rw-r--r--finance/ledgersmb/Makefile46
1 files changed, 46 insertions, 0 deletions
diff --git a/finance/ledgersmb/Makefile b/finance/ledgersmb/Makefile
new file mode 100644
index 000000000000..bb6d192faa99
--- /dev/null
+++ b/finance/ledgersmb/Makefile
@@ -0,0 +1,46 @@
+# New ports collection makefile for: ledger-smb
+# Date created: 2007-3-20
+# Whom: anarcat@anarcat.ath.cx
+#
+# $FreeBSD$
+#
+
+PORTNAME= ledger-smb
+PORTVERSION= 1.1.12
+CATEGORIES= finance perl5
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= ${PORTNAME}
+
+MAINTAINER= anarcat@anarcat.ath.cx
+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}/${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>