aboutsummaryrefslogtreecommitdiff
path: root/devel/gitolite2
diff options
context:
space:
mode:
authorDmitry Marakasov <amdmi3@FreeBSD.org>2016-01-24 20:01:54 +0000
committerDmitry Marakasov <amdmi3@FreeBSD.org>2016-01-24 20:01:54 +0000
commitbdbe6a87d860df3ddafaaa20718ab35be87cc204 (patch)
treecbb1d5ffaeefac2649f6251c4c668b015a4c09ea /devel/gitolite2
parent576dd6d75e2d58a246b50b5d57dcaac9ed60951d (diff)
downloadports-bdbe6a87d860df3ddafaaa20718ab35be87cc204.tar.gz
ports-bdbe6a87d860df3ddafaaa20718ab35be87cc204.zip
- Add LICENSE_FILE
- Switch to options helpers - Add CPE info
Notes
Notes: svn path=/head/; revision=407173
Diffstat (limited to 'devel/gitolite2')
-rw-r--r--devel/gitolite2/Makefile51
1 files changed, 23 insertions, 28 deletions
diff --git a/devel/gitolite2/Makefile b/devel/gitolite2/Makefile
index 94dea9ec46e7..deb95088ddaf 100644
--- a/devel/gitolite2/Makefile
+++ b/devel/gitolite2/Makefile
@@ -13,6 +13,7 @@ MAINTAINER= ports@FreeBSD.org
COMMENT= Access control layer on top of git
LICENSE= GPLv2
+LICENSE_FILE= ${WRKSRC}/doc/COPYING
RUN_DEPENDS= git>=0:${PORTSDIR}/devel/git
@@ -22,38 +23,32 @@ GH_TAGNAME= 912a8bd
CONFLICTS= gitolite-[^2]*
-USES= perl5 shebangfix
+USES= cpe perl5 shebangfix
+CPE_VENDOR= sitaram_chamarty
SHEBANG_FILES= hooks/common/update \
- src/gl-admin-push \
- src/gl-auth-command \
- src/gl-compile-conf \
- src/gl-conf-convert \
- src/gl-dryrun \
- src/gl-install \
- src/gl-mirror-push \
- src/gl-mirror-shell \
- src/gl-query-rc \
- src/gl-setup \
- src/gl-setup-authkeys \
- src/gl-time \
- src/gl-tool \
- src/sshkeys-lint
+ src/gl-admin-push \
+ src/gl-auth-command \
+ src/gl-compile-conf \
+ src/gl-conf-convert \
+ src/gl-dryrun \
+ src/gl-install \
+ src/gl-mirror-push \
+ src/gl-mirror-shell \
+ src/gl-query-rc \
+ src/gl-setup \
+ src/gl-setup-authkeys \
+ src/gl-time \
+ src/gl-tool \
+ src/sshkeys-lint
+NO_ARCH= yes
SUB_FILES= pkg-message
OPTIONS_DEFINE= GITUSER
+OPTIONS_SUB= yes
GITUSER_DESC= Create git user as gitolite provider
-
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MGITUSER}
-USERS= git
-GROUPS= ${USERS}
-PLIST_SUB+= GITUSER=""
-.else
-PLIST_SUB+= GITUSER="@comment "
-.endif
+GITUSER_VARS= USERS=git GROUPS=git
GLAUTHCOMMAND= \
\#!/bin/sh\n \
@@ -85,11 +80,11 @@ post-build:
@${FIND} ${WRKSRC} -name "*.orig" -delete
do-install:
- ${MKDIR} ${STAGEDIR}${PREFIX}/libexec/gitolite
+ @${MKDIR} ${STAGEDIR}${PREFIX}/libexec/gitolite
${INSTALL_SCRIPT} ${WRKSRC}/src/* ${STAGEDIR}${PREFIX}/libexec/gitolite/
- ${MKDIR} ${STAGEDIR}${DATADIR}/conf
+ @${MKDIR} ${STAGEDIR}${DATADIR}/conf
${INSTALL_DATA} ${WRKSRC}/conf/* ${STAGEDIR}${DATADIR}/conf
- ${MKDIR} ${STAGEDIR}${DATADIR}/hooks
+ @${MKDIR} ${STAGEDIR}${DATADIR}/hooks
(cd ${WRKSRC}/hooks && ${COPYTREE_BIN} \* ${STAGEDIR}${DATADIR}/hooks)
${INSTALL_SCRIPT} ${WRKDIR}/auth-command ${STAGEDIR}${PREFIX}/bin/gl-auth-command
${INSTALL_SCRIPT} ${WRKDIR}/setup ${STAGEDIR}${PREFIX}/bin/gl-setup