mynettcptable/Makefile

62 lines
3.4 KiB
Makefile
Raw Normal View History

2022-05-14 11:33:22 +02:00
# Makefile 2022-05-13 10:36:39Z yo $
PORTNAME= mynettcptable
2022-05-16 10:57:03 +02:00
DISTVERSIONPREFIX= v
2022-05-17 11:44:58 +02:00
DISTVERSION= 1.0.0-rc3
2022-05-14 11:33:22 +02:00
CATEGORIES= mail
2022-05-17 11:02:12 +02:00
MASTER_SITES= https://git.nosd.in/yo/mynettcptable/archive/ \
https://codeload.github.com/Azure/go-ntlmssp/tar.gz/48547f28849e?dummy=/:SRC2 \
https://codeload.github.com/go-asn1-ber/asn1-ber/tar.gz/v1.5.4?dummy=/:SRC3 \
https://codeload.github.com/go-ldap/ldap/tar.gz/v3.4.3?dummy=/:SRC4 \
https://codeload.github.com/golang/crypto/tar.gz/ae2d96664a29?dummy=/:SRC5 \
https://codeload.github.com/golang/sys/tar.gz/665e8c7367d1?dummy=/:SRC6 \
https://codeload.github.com/peterbourgon/ff/tar.gz/v1.7.1?dummy=/:SRC7 \
https://codeload.github.com/sirupsen/logrus/tar.gz/v1.8.1?dummy=/:SRC8 \
https://codeload.github.com/tabalt/pidfile/tar.gz/v1.1.0?dummy=/:SRC9
2022-05-14 11:33:22 +02:00
# Gitea packaging need some tweaks
2022-05-17 11:02:12 +02:00
DISTNAME= ${DISTVERSIONPREFIX}${DISTVERSION}${EXTRACT_SUFX} Azure-go-ntlmssp-48547f28849e_GH0.tar.gz:SRC2 \
go-asn1-ber-asn1-ber-v1.5.4_GH0.tar.gz:SRC3 go-ldap-ldap-v3.4.3_GH0.tar.gz:SRC4 \
golang-crypto-ae2d96664a29_GH0.tar.gz:SRC5 golang-sys-665e8c7367d1_GH0.tar.gz:SRC6 \
peterbourgon-ff-v1.7.1_GH0.tar.gz:SRC7 sirupsen-logrus-v1.8.1_GH0.tar.gz:SRC8 \
tabalt-pidfile-v1.1.0_GH0.tar.gz:SRC9
2022-05-14 11:33:22 +02:00
MAINTAINER= johan@nosd.in
COMMENT= Postfix tcp_table service to get mynetworks from LDAP
LICENSE= BSD3CLAUSE
USES= go
# Gitea packaging need some tweaks
WRKSRC= ${WRKDIR}/${PORTNAME}-${DISTVERSION}
2022-05-17 11:02:12 +02:00
EXTRACT_AFTER_ARGS= && ( [ -d ${PORTNAME} ] && ${MV} ${PORTNAME} ${PORTNAME}-${DISTVERSION} || /usr/bin/true ) \
&& ( [ -d go-ntlmssp-48547f28849e ] && ( ${MKDIR} ${PORTNAME}-${DISTVERSION}/vendor/github.com/Azure && \
${MV} go-ntlmssp-48547f28849e ${PORTNAME}-${DISTVERSION}/vendor/github.com/Azure/go-ntlmssp ) || /usr/bin/true ) \
&& ( [ -d asn1-ber-1.5.4 ] && ( ${MKDIR} ${PORTNAME}-${DISTVERSION}/vendor/github.com/go-asn1-ber && \
${MV} asn1-ber-1.5.4 ${PORTNAME}-${DISTVERSION}/vendor/github.com/go-asn1-ber/asn1-ber ) || /usr/bin/true ) \
&& ( [ -d ldap-3.4.3 ] && ( ${MKDIR} ${PORTNAME}-${DISTVERSION}/vendor/github.com/go-ldap && \
${MV} ldap-3.4.3 ${PORTNAME}-${DISTVERSION}/vendor/github.com/go-ldap/ldap ) || /usr/bin/true ) \
&& ( [ -d crypto-ae2d96664a29 ] && ( ${MKDIR} ${PORTNAME}-${DISTVERSION}/vendor/golang.org/x && \
${MV} crypto-ae2d96664a29 ${PORTNAME}-${DISTVERSION}/vendor/golang.org/x/crypto ) || /usr/bin/true ) \
&& ( [ -d sys-665e8c7367d1 ] && ( ${MKDIR} ${PORTNAME}-${DISTVERSION}/vendor/golang.org/x && \
${MV} sys-665e8c7367d1 ${PORTNAME}-${DISTVERSION}/vendor/golang.org/x/sys ) || /usr/bin/true ) \
&& ( [ -d ff-1.7.1 ] && ( ${MKDIR} ${PORTNAME}-${DISTVERSION}/vendor/github.com/peterbourgon && \
${MV} ff-1.7.1 ${PORTNAME}-${DISTVERSION}/vendor/github.com/peterbourgon/ff ) || /usr/bin/true ) \
&& ( [ -d logrus-1.8.1 ] && ( ${MKDIR} ${PORTNAME}-${DISTVERSION}/vendor/github.com/sirupsen && \
${MV} logrus-1.8.1 ${PORTNAME}-${DISTVERSION}/vendor/github.com/sirupsen/logrus ) || /usr/bin/true ) \
&& ( [ -d pidfile-1.1.0 ] && ( ${MKDIR} ${PORTNAME}-${DISTVERSION}/vendor/github.com/tabalt && \
${MV} pidfile-1.1.0 ${PORTNAME}-${DISTVERSION}/vendor/github.com/tabalt/pidfile ) || /usr/bin/true ) \
2022-05-14 11:33:22 +02:00
USERS= nobody
GROUPS= nogroup
2022-05-16 10:57:03 +02:00
USE_RC_SUBR= mynettcptable
2022-05-14 11:33:22 +02:00
pre-test:
${SETENV} GOPATH="${WRKDIR}"
post-install:
2022-05-16 10:51:14 +02:00
${INSTALL_DATA} ${WRKSRC}/mynettcptable.conf.sample ${STAGEDIR}${PREFIX}/etc/
2022-05-14 11:33:22 +02:00
.include <bsd.port.mk>