summaryrefslogtreecommitdiff
path: root/www/samdruckerserver/Makefile
blob: 7355b3e1e34b729e02b0580956317b290e765efd (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
36
37
38
39

PORTNAME=	samdrucker
PORTVERSION=	0.2.6
CATEGORIES=	www
PKGNAMESUFFIX=	server

MAINTAINER=	dvl@FreeBSD.org
COMMENT=	Installs the server side of SamDrucker

LICENSE=	BSD2CLAUSE
LICENSE_FILE=	${WRKSRC}/LICENSE

USES=		apache php

USE_PHP=	json pdo_pgsql

NO_ARCH=	yes
NO_BUILD=	yes

USE_GITHUB=     yes
GH_ACCOUNT=	dlangille
GH_PROJECT=	SamDrucker

SUB_FILES=	samdrucker.conf.sample

PLIST_SUB=	ETCDIR="${ETCDIR}" \
		DATADIR="${DATADIR}"

do-install:
	${MKDIR} ${STAGEDIR}${WWWDIR}
	${MKDIR} ${STAGEDIR}${ETCDIR}
	${MKDIR} ${STAGEDIR}${DATADIR}
	${MKDIR} ${STAGEDIR}${PREFIX}/${APACHEETCDIR}/Includes
	${INSTALL_SCRIPT} ${WRKSRC}/servers/php/samdrucker.php ${STAGEDIR}${WWWDIR}
	${INSTALL_DATA} ${WRKSRC}/servers/php/samdrucker.conf.sample ${STAGEDIR}${ETCDIR}/samdruckerserver.conf.sample
	${INSTALL_DATA} ${WRKDIR}/samdrucker.conf.sample ${STAGEDIR}/${PREFIX}/${APACHEETCDIR}/Includes/samdruckerserver.conf.sample
	(cd ${WRKSRC} && ${COPYTREE_SHARE} PostgreSQL ${STAGEDIR}${DATADIR})

.include <bsd.port.mk>