summaryrefslogtreecommitdiff
path: root/finance/ledgersmb/Makefile
blob: 8a489a158cc1c289e12283bec35f7207437a86c5 (plain)
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
# Created by: anarcat@anarcat.ath.cx
# $FreeBSD$

PORTNAME=	ledger-smb
PORTVERSION=	1.1.12
PORTREVISION=	3
CATEGORIES=	finance perl5
MASTER_SITES=	SF/${PORTNAME}/Releases/archive-1.1/${PORTVERSION}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Double entry accounting system

BUILD_DEPENDS=	p5-DBD-Pg>=0:${PORTSDIR}/databases/p5-DBD-Pg
RUN_DEPENDS:=	${BUILD_DEPENDS}

NO_BUILD=	yes
NO_ARCH=	yes
WRKSRC=		${WRKDIR}/${PORTNAME}
PKGMESSAGE=	${WRKDIR}/pkg-message
USES=		shebangfix perl5
SHEBANG_FILES=	*.pl locale/*/*.pl bin/*/*.pl utils/*/*.pl
PLIST_SUB=	WWWOWN="${WWWOWN}" WWWGRP="${WWWGRP}"
SUB_FILES=	${PORTNAME}-httpd.conf pkg-message

post-patch:
	@${REINPLACE_CMD} -i '' -e '1s|/bin/perl|${perl_CMD}|' ${WRKSRC}/bin/lynx/gl.pl

do-install:
	@cd ${WRKDIR} ; \
		${TAR} -cf - ${PORTNAME} | ( cd ${STAGEDIR}${PREFIX} ; ${TAR} xf - )
	@cd ${STAGEDIR}${PREFIX}/${PORTNAME} ; \
		${CHMOD} 711 users templates css spool
	@${INSTALL_DATA} ${WRKDIR}/${PORTNAME}-httpd.conf ${STAGEDIR}${PREFIX}/etc/

.include <bsd.port.mk>