View | Details | Raw Unified | Return to bug 254377 | Differences between
and this patch

Collapse All | Expand All

(-)Makefile (-9 / +7 lines)
Lines 2-14 Link Here
2
# $FreeBSD$
2
# $FreeBSD$
3
3
4
PORTNAME=	gitlist
4
PORTNAME=	gitlist
5
DISTVERSION=	1.0.1
5
DISTVERSION=	1.0.2
6
PORTREVISION=	1
7
CATEGORIES=	devel www
6
CATEGORIES=	devel www
8
MASTER_SITES=	https://github.com/klaussilveira/gitlist/releases/download/${DISTVERSION}/ \
7
MASTER_SITES=	https://github.com/klaussilveira/gitlist/releases/download/${DISTVERSION}/ \
9
		http://freebsd.ark-ict.nl/ports/
8
		https://freebsd.ark-ict.nl/ports/
10
9
11
MAINTAINER=	andre@ark-ict.nl
10
MAINTAINER=	freebsd-ports@misc.ark-ict.nl
12
COMMENT=	Web based Git repository browser written in PHP
11
COMMENT=	Web based Git repository browser written in PHP
13
12
14
LICENSE=	BSD3CLAUSE
13
LICENSE=	BSD3CLAUSE
Lines 16-35 Link Here
16
15
17
RUN_DEPENDS=	git:devel/git
16
RUN_DEPENDS=	git:devel/git
18
17
19
PLIST=		${WRKDIR}/plist
20
WRKSRC=		${WRKDIR}/${PORTNAME}
21
22
NO_BUILD=	yes
18
NO_BUILD=	yes
23
USES=		php:web
19
USES=		php:web
24
USE_PHP=	ctype hash simplexml
20
USE_PHP=	ctype hash simplexml
25
21
22
PLIST=		${WRKDIR}/plist
23
WRKSRC=		${WRKDIR}/${PORTNAME}
24
26
USERS?=		${WWWOWN}
25
USERS?=		${WWWOWN}
27
GROUPS?=	${WWWGRP}
26
GROUPS?=	${WWWGRP}
28
SUB_FILES=	pkg-message
27
SUB_FILES=	pkg-message
29
28
30
post-patch:
29
post-patch:
31
	${FIND} ${WRKSRC}/vendor/klaussilveira/gitter/lib/Gitter/Model/ -name \*.php -exec ${SED} -i '' 's/Object/Objekt/g' {} \;
32
	${MV} ${WRKSRC}/vendor/klaussilveira/gitter/lib/Gitter/Model/Object.php ${WRKSRC}/vendor/klaussilveira/gitter/lib/Gitter/Model/Objekt.php
33
	${MKDIR} ${WRKSRC}/cache
30
	${MKDIR} ${WRKSRC}/cache
34
	cd ${WRKSRC}; \
31
	cd ${WRKSRC}; \
35
	${REINPLACE_CMD} -e 's|/usr/bin/git|/usr/local/bin/git|g' config.ini-example; \
32
	${REINPLACE_CMD} -e 's|/usr/bin/git|/usr/local/bin/git|g' config.ini-example; \
Lines 47-51 Link Here
47
			${INSTALL_DATA} "$$src" "$$dst"; \
44
			${INSTALL_DATA} "$$src" "$$dst"; \
48
		fi \
45
		fi \
49
	done
46
	done
47
	${RM} -r "${WWWDIR}/cache/views"
50
48
51
.include <bsd.port.mk>
49
.include <bsd.port.mk>
(-)distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
TIMESTAMP = 1533453094
1
TIMESTAMP = 1615986035
2
SHA256 (gitlist-1.0.1.tar.gz) = 3da0643f710c5c6b9b86efa46f87bc4a14069b8d31702f21a81213882b7783ea
2
SHA256 (gitlist-1.0.2.tar.gz) = 38728b688f6600ad97b6d5900b472da6529ff7f3b8c0669ada25ae0bb65d34d9
3
SIZE (gitlist-1.0.1.tar.gz) = 3027710
3
SIZE (gitlist-1.0.2.tar.gz) = 5794820
(-)files/pkg-message.in (+2 lines)
Lines 6-11 Link Here
6
to %%WWWDIR%%/config.ini and
6
to %%WWWDIR%%/config.ini and
7
edit it to make it use your git repositories.
7
edit it to make it use your git repositories.
8
Then configure your webserver to use the htdocs directory.
8
Then configure your webserver to use the htdocs directory.
9
Make sure mod_rewrite is enabled in your webserver,
10
else the url-rewrite will not work and result in a 404 when accessing a repository.
9
EOM
11
EOM
10
}
12
}
11
]
13
]

Return to bug 254377