summaryrefslogtreecommitdiff
path: root/devel/gitolite/Makefile
blob: dae367ac2398368a5b2fe645afa4b8688c625be2 (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
# $NetBSD: Makefile,v 1.3 2012/10/03 21:54:30 wiz Exp $
#

DISTNAME=	sitaramc-gitolite-v2.2-0-g15b17d7
PKGNAME=	${DISTNAME:S/sitaramc-gitolite-v/gitolite-/:C/-0-.*//}
PKGREVISION=	1
CATEGORIES=	devel net
MASTER_SITES=	-https://github.com/sitaramc/gitolite/tarball/v2.2

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	https://github.com/sitaramc/gitolite/wiki
COMMENT=	Gitolite allows you to host Git repositories easily and securely
LICENSE=	gnu-gpl-v2

PKG_DESTDIR_SUPPORT=	user-destdir

DEPENDS+=	scmgit-base-[0-9]*:../../devel/scmgit-base

USE_LANGUAGES=	# none
USE_TOOLS+=	perl bash

# Force using "curl" for fetching the distribution file. It is only available
# over HTTPS and "curl" is the only fetch program which always supports HTTPS.
FETCH_USING=	curl

WRKSRC=		${WRKDIR}/sitaramc-gitolite-0ffadc1

NO_BUILD=	yes

REPLACE_PERL=	src/gl-* src/sshkeys-lint hooks/common/update
REPLACE_BASH=	src/gl-* hooks/common/*

do-install:
	${RM} ${WRKSRC}/src/gl-system-install.orig
	${WRKSRC}/src/gl-system-install ${PREFIX}/bin \
		${PREFIX}/share/gitolite/conf ${PREFIX}/share/gitolite/hooks \
		${DESTDIR}

.include "../../mk/bsd.pkg.mk"