aboutsummaryrefslogtreecommitdiffstats
path: root/mail/roundcube-tls_icon/Makefile
blob: 41d15be509fdbe0478d90bfbdb72aad8f8c722a0 (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
PORTNAME=	tls_icon
DISTVERSION=	1.3.1
CATEGORIES=	mail
PKGNAMEPREFIX=	roundcube-
PKGNAMESUFFIX=	${PHP_PKGNAMESUFFIX}

MAINTAINER=	netchild@FreeBSD.org
COMMENT=	Roundcube tls_icon plugin
WWW=		https://github.com/GermanCoding/Roundcube_TLS_Icon

LICENSE=	MIT

RUN_DEPENDS=	roundcube${PHP_PKGNAMESUFFIX}>=1.0:mail/roundcube@${PHP_FLAVOR}

USES=		php:flavors

WWWDIR=		${LOCALBASE}/www/roundcube
NO_ARCH=	yes
NO_BUILD=	yes

USE_GITHUB=	yes
GH_ACCOUNT=	GermanCoding
GH_PROJECT=	Roundcube_TLS_Icon

PLUGDIR=	${WWWDIR}/plugins/tls_icon
PLIST_SUB+=	PLUGDIR="www/roundcube/plugins/tls_icon"

do-install:
	@${ECHO} "Installing in ${PLUGDIR}"
	${MKDIR} ${STAGEDIR}/${PLUGDIR}
	cd ${WRKSRC} && ${COPYTREE_SHARE} \* ${STAGEDIR}/${PLUGDIR}

gen-plist:
	${FIND} ${WRKSRC} -type f -print | ${SORT} | \
	    ${GREP} -v '.gitignore' | \
	    ${SED} -e "s:${WRKSRC}:%%PLUGDIR%%:g" \
	           -e 's:%%PLUGDIR%%/config.inc.php.dist:@sample %%PLUGDIR%%/config.inc.php.dist %%PLUGDIR%%/config.inc.php:'  \
	    > pkg-plist.new
	${FIND} ${WRKSRC} -type d -print | ${SORT} -r | \
	    ${SED} -e "s:${WRKSRC}:@dir %%PLUGDIR%%:g"  >> pkg-plist.new

.include <bsd.port.mk>