Changeset View
Changeset View
Standalone View
Standalone View
www/quark/Makefile
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= quark | PORTNAME= quark | ||||
DISTVERSION= g20190923 | DISTVERSION= g20190923 | ||||
CATEGORIES= www | CATEGORIES= www | ||||
MASTER_SITES= https://people.freebsd.org/~0mp/distfiles/ | MASTER_SITES= LOCAL/0mp \ | ||||
tobik: If this does not work for you, you should probably file a bug. I see nothing wrong here or on… | |||||
https://people.freebsd.org/~0mp/distfiles/ | |||||
PKGNAMESUFFIX= -server | PKGNAMESUFFIX= -server | ||||
DISTNAME= ${PKGNAME} | DISTNAME= ${PKGNAME} | ||||
MAINTAINER= 0mp@FreeBSD.org | MAINTAINER= 0mp@FreeBSD.org | ||||
COMMENT= Small and simple HTTP GET/HEAD-only web server for static content | COMMENT= Small and simple HTTP GET/HEAD-only web server for static content | ||||
LICENSE= ISCL | LICENSE= ISCL | ||||
LICENSE_FILE= ${WRKSRC}/LICENSE | LICENSE_FILE= ${WRKSRC}/LICENSE | ||||
MAKE_ARGS= MANPREFIX=${PREFIX}/man | |||||
CONFLICTS_INSTALL= quark | CONFLICTS_INSTALL= quark | ||||
MAKE_ARGS= MANPREFIX=${PREFIX}/man | NO_WRKSUBDIR= yes | ||||
PLIST_FILES= bin/quark \ | PLIST_FILES= bin/quark \ | ||||
man/man1/quark.1.gz | man/man1/quark.1.gz | ||||
.include <bsd.port.options.mk> | .include <bsd.port.options.mk> | ||||
# _WITH_DPRINTF support was removed precisely in r303524. | # _WITH_DPRINTF support was removed precisely in r303524. | ||||
.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1200002 | .if ${OPSYS} == FreeBSD && ${OSVERSION} < 1200002 | ||||
Show All 11 Lines | |||||
.if defined(QUARK_CONF) | .if defined(QUARK_CONF) | ||||
@${ECHO_MSG} "Creating config.h from ${QUARK_CONF}" | @${ECHO_MSG} "Creating config.h from ${QUARK_CONF}" | ||||
@${LN} -sf ${QUARK_CONF} ${WRKSRC}/config.h | @${LN} -sf ${QUARK_CONF} ${WRKSRC}/config.h | ||||
.endif | .endif | ||||
post-install: | post-install: | ||||
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/quark | @${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/quark | ||||
regenerate-distfile: | _regenerate-distfile: | ||||
${RM} -r -- ${PKGNAME} | ${RM} -r -- ${PKGNAME} | ||||
git clone -n https://git.suckless.org/quark ${PKGNAME} | git clone -n https://git.suckless.org/quark ${PKGNAME} | ||||
git -C ${PKGNAME} checkout ${COMMIT_HASH} | git -C ${PKGNAME} archive --output=${PKGNAME}.tar.gz ${COMMIT_HASH} | ||||
tobikUnsubmitted Not Done Inline ActionsYou can drop NO_WRKSUBDIR again if you generate the archive with --prefix=${PKGNAME}/ tobik: You can drop NO_WRKSUBDIR again if you generate the archive with `--prefix=${PKGNAME}/` | |||||
${RM} -r -- ${PKGNAME}/.git | scp ${PKGNAME}/${PKGNAME}.tar.gz 0mp@freefall.freebsd.org:~/public_html/distfiles | ||||
${TAR} -czf ${PKGNAME}.tar.gz ${PKGNAME} | scp ${PKGNAME}/${PKGNAME}.tar.gz 0mp@freefall.freebsd.org:~/public_distfiles | ||||
scp ${PKGNAME}.tar.gz 0mp@freefall.freebsd.org:~/public_html/distfiles | |||||
${RM} -r -- ${PKGNAME} ${PKGNAME}.tar.gz | |||||
.include <bsd.port.mk> | .include <bsd.port.mk> |
If this does not work for you, you should probably file a bug. I see nothing wrong here or on freefall. It really should just work.