On 10/07, Stuart Henderson wrote: > On 2013/10/07 13:26, Gabriel Guzman wrote: > > > > I'm working on a port of phabricator (phabricator.org), facebook's bug > > tracking, code review, wiki, etc software. They don't release any versions > > at the > > moment, or have any tags so I can't get a version number for my > > Makefile. I'm looking for other examples of software like this in the > > ports tree to see what the best approach would be, right now my Makefile > > looks like this: > > > > # $OpenBSD: Makefile,v 1.45 2013/03/11 11:44:50 espie Exp $ > > > > COMMENT = code review, repository browser, bug tracker and wiki > > > > DISTNAME = master > > CATEGORIES = www > > > > HOMEPAGE = http://phabricator.org/ > > MAINTAINER = Gabriel Guzman <g...@guzman-nunez.com> > > > > # Apache > > #PERMIT_PACKAGE_CDROM = Yes > > > > MASTER_SITES = https://github.com/facebook/phabricator/archive/ > > > > MODULES = lang/php > > > > RUN_DEPENDS = lang/php/${MODPHP_VERSION},-mysql > > > > NO_BUILD = Yes > > NO_TEST = Yes > > PKG_ARCH = * > > > > PREFIX = /var/www > > INSTDIR = ${PREFIX}/phabricator > > WRKDIST = ${WRKDIR}/phabricator > > > > SUBST_VARS = INSTDIR > > > > do-install: > > ${INSTALL_DATA_DIR} ${PREFIX}/phabricator > > cd ${WRKSRC} && pax -rw * ${PREFIX}/phabricator > > > > .include <bsd.port.mk> > > > > > > But, that results in make fetch-all creating a file called > > master.tar.gz, which is less than useful. > > > > I'm going to try the filename{url} approach to see if that works better, > > but then I'm not sure what to use as a number scheme for the version of > > phabricator... do I just make something up since upstream does not > > provide a version number? > > > > Any pointers (RTFM's etc) appreciated. > > > > Thanks, > > gabe. > > > > You can't just use master, you need to pick a commit id instead. > I would normally use DISTNAME=phabricator-0.20131007 or something..
Yup, thanks, that worked! gabe.