openbsd-ports/www/honk/Makefile
ajacoutot c4096e6659 Stop using the daemon class in @newuser.
If we need to make an exception we can do it and properly document the
reason but by default we should just use the default login class.
rc.d uses daemon or the login class provided in login.conf.d so this has
no impact there.

discussed with sthen@, tb@ and robert@

praying that my grep/sed skills did not break anything and still
believing in portbump :-)
2022-11-08 11:16:56 +00:00

62 lines
1.8 KiB
Makefile

COMMENT = federated status conveyance
DISTNAME = honk-0.9.8
CATEGORIES = www
REVISION = 0
HOMEPAGE = https://humungus.tedunangst.com/r/honk
MAINTAINER = Horia Racoviceanu <horia@racoviceanu.com>
# ISC
PERMIT_PACKAGE = Yes
WANTLIB += c pthread sqlite3
MASTER_SITES = ${HOMEPAGE}/d/
DISTFILES = ${EXTRACT_ONLY} honk-{../v/tip/d/views/}icon.png
EXTRACT_ONLY = ${DISTNAME}${EXTRACT_SUFX}
EXTRACT_SUFX = .tgz
MODULES = lang/go
LIB_DEPENDS = databases/sqlite3
NO_TEST = Yes
ALL_TARGET = humungus.tedunangst.com/r/honk
SUBST_VARS += SYSCONFDIR
DOCDIR ?= ${PREFIX}/share/doc/honk
EXAMPLESDIR = ${PREFIX}/share/examples/honk
post-build:
.for toy in autobonker saytheday sprayandpray youvegothonks
${MODGO_CMD} build ${MODGO_FLAGS} -o ${MODGO_WORKSPACE}/bin/${toy} \
${MODGO_WORKSPACE}/src/${ALL_TARGET}/toys/${toy}.go
.endfor
.for toy2 in gettoken wonkawonk
${MODGO_CMD} build ${MODGO_FLAGS} -o ${MODGO_WORKSPACE}/bin/${toy2} \
${MODGO_WORKSPACE}/src/${ALL_TARGET}/toys/{${toy2}.go,fetch.go}
.endfor
post-install:
.for p in 1 3 5 7 8
${INSTALL_MAN} ${MODGO_WORKSPACE}/src/${ALL_TARGET}/docs/*.${p} \
${PREFIX}/man/man${p}
rm ${MODGO_WORKSPACE}/src/${ALL_TARGET}/docs/*.${p}
.endfor
${INSTALL_DATA_DIR} ${DOCDIR}/toys
${INSTALL_DATA} ${MODGO_WORKSPACE}/src/${ALL_TARGET}/toys/README \
${DOCDIR}/toys
${INSTALL_DATA} ${MODGO_WORKSPACE}/src/${ALL_TARGET}/{LICENSE,README,docs/*} \
${DOCDIR}/
${INSTALL_DATA_DIR} ${EXAMPLESDIR}/views
${INSTALL_DATA} ${MODGO_WORKSPACE}/src/${ALL_TARGET}/views/* \
${EXAMPLESDIR}/views/
${INSTALL_DATA} ${MODGO_WORKSPACE}/src/${ALL_TARGET}/schema.sql \
${EXAMPLESDIR}/
${INSTALL_DATA} ${DISTDIR}/honk-icon.png ${EXAMPLESDIR}/views/favicon.ico
${INSTALL_DATA} ${DISTDIR}/honk-icon.png ${EXAMPLESDIR}/views/icon.png
.include <bsd.port.mk>