48 lines
1.3 KiB
Makefile
48 lines
1.3 KiB
Makefile
# $NetBSD: Makefile,v 1.7 2021/02/04 09:16:45 schmonz Exp $
|
|
|
|
DISTNAME= s6-networking-2.4.0.0
|
|
PKGREVISION= 3
|
|
CATEGORIES= net
|
|
MASTER_SITES= ${HOMEPAGE}
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${MANPAGES}
|
|
|
|
MAINTAINER= schmonz@NetBSD.org
|
|
HOMEPAGE= https://skarnet.org/software/s6-networking/
|
|
COMMENT= Suite of small networking utilities
|
|
LICENSE= isc
|
|
|
|
MANPAGES= v2.4.0.0.1.tar.gz
|
|
SITES.${MANPAGES}= https://github.com/flexibeast/s6-networking-man-pages/archive/
|
|
|
|
USE_TOOLS+= gmake
|
|
HAS_CONFIGURE= yes
|
|
CONFIGURE_ARGS+= --prefix=${PREFIX}
|
|
CONFIGURE_ARGS+= --with-sysdeps=${PREFIX}/lib/skalibs/sysdeps
|
|
CONFIGURE_ARGS+= --enable-absolute-paths
|
|
|
|
INSTALLATION_DIRS+= ${PKGMANDIR}/man1 ${PKGMANDIR}/man7
|
|
|
|
.include "options.mk"
|
|
|
|
.PHONY: do-extract-manpages do-install-manpages
|
|
post-extract: do-extract-manpages
|
|
do-extract-manpages:
|
|
cd ${WRKDIR}/${PKGBASE}-man-pages-*; \
|
|
for i in *.in; do \
|
|
j=$$(echo $$i | sed -e 's|\.in$$||'); \
|
|
mv $$i $$j; \
|
|
done
|
|
|
|
post-install: do-install-manpages
|
|
do-install-manpages:
|
|
cd ${WRKDIR}/${PKGBASE}-man-pages-*; for i in 1 7; do \
|
|
for j in *.$$i; do \
|
|
${INSTALL_MAN} $$j \
|
|
${DESTDIR}${PREFIX}/${PKGMANDIR}/man$$i; \
|
|
done \
|
|
done
|
|
|
|
.include "../../devel/skalibs/buildlink3.mk"
|
|
.include "../../net/s6-dns/buildlink3.mk"
|
|
.include "../../sysutils/s6/buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|