[New Port] Working on Gitlab - Calling for Help and Ideas

Torsten Zuehlsdorff mailinglists at toco-domains.de
Wed Apr 22 15:32:34 UTC 2015


Hello,

i'm currently working at an Gitlab-port. I've never done this type of 
port before, so i'm having a hard time to come along.

At the moment there is a basic Makefile, distinfo and pkg-descr. It's 
already possible to fetch the port and extract it into the workdir.

There is a bunch of tasks left. At the moment there is a big list of 
RUN_DEPENDS. I'm not even sure if every item is mandatory. I'm just 
trying to transform this guide into a port:
https://github.com/gitlabhq/gitlab-recipes/blob/master/install/freebsd/freebsd-10.md

I also could not figure out if my solution to copy the stage-dir into 
/usr/local/www/gitlab is correct.

At the end gitlab needs some rc-scripts and more installation routines. 
I'm not sure where to draw the line; which task should the port handle 
and which must be done by the administrator.

Therefore - if anyone is interested in this port or has some experience 
with running gitlab at FreeBSD: please share your minds. I will do my 
best to get this port running :)

I've attached the current work. It is at very, very early stage.

Very actual results/updates are keep in SVN with reading-access for 
everyone:
svn://svn.toco-domains.de/freebsd-ports/www/gitlab

Greetings,
Torsten
-------------- next part --------------
PORTNAME=	gitlab
PORTVERSION=	7.9.4
DISTVERSION=	v7.9.4
CATEGORIES=	www devel

USE_GITHUB=	yes
GH_ACCOUNT=	gitlabhq
GH_PROJECT=	gitlabhq

MAINTAINER=	ports at toco-domains.de
COMMENT=	Web GUI for manageing git repositories

RUN_DEPENDS=	sudo:${PORTSDIR}/security/sudo \
		bash:${PORTSDIR}/shells/bash \
		icu:${PORTSDIR}/devel/icu \
		cmake:${PORTSDIR}/devel/cmake \
		pkgconf:${PORTSDIR}/devel/pkgconf \
		git:${PORTSDIR}/devel/git \
		ruby>=2.1:${PORTSDIR}/lang/ruby \
		ruby-gems:${PORTSDIR}/devel/ruby-gems \
		logrotate:${PORTSDIR}/sysutils/logrotate \
		redis:${PORTSDIR}/databases/redis \
		postfix:${PORTSDIR}/mail/postfix \
		krb5:${PORTSDIR}/security/krb5

USES=pgsql

.include <bsd.port.options.mk>

WRKSRC=	${WRKDIR}/${GH_PROJECT}-${PORTVERSION}

NO_BUILD=	yes

do-install:
	${MKDIR} ${STAGEDIR}
	(cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/www/${PORTNAME})

post-install:
	${MKDIR} ${PREFIX}/www/${PORTNAME}
	(cd ${WRKSRC} && ${COPYTREE_SHARE} . ${PREFIX}/www/${PORTNAME})

.include <bsd.port.mk>
-------------- next part --------------
SHA256 (gitlab-v7.9.4_GH0.tar.gz) = bbc6a0647832f983322ce2c80f3d642354709b32de28f8ba6009c508c3600ece
SIZE (gitlab-v7.9.4_GH0.tar.gz) = 5392634
-------------- next part --------------
This is a port of gitlab. Text need increasement ;)

WWW: https://gitlab.com/


More information about the freebsd-ports mailing list