PORTNAME= glauth DISTVERSION= HEAD PORTREVISION= 0 CATEGORIES= security MASTER_SITES= https://raw.githubusercontent.com/${GH_ACCOUNT}/${GH_PROJECT}/${DISTVERSIONFULL}/v2/:gomod DISTFILES= go.mod:gomod MAINTAINER= amigan@gmail.com COMMENT= Simple LDAP server for developers WWW= https://github.com/glauth/glauth LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE USES= go:modules USE_GITHUB= yes GH_ACCOUNT= glauth USE_RC_SUBR= glauth GO_MODULE= github.com/${GH_ACCOUNT}/${GH_PROJECT} GO_TARGET= glauth.go:${PREFIX}/sbin/${PORTNAME} post-extract: mv ${WRKSRC}/v2 ${WRKSRC}old/ mv ${WRKSRC} ${WRKSRC}garbage mv ${WRKSRC}old ${WRKSRC} mv ${WRKSRC}garbage/LICENSE ${WRKSRC} post-install: ${INSTALL_DATA} ${WRKSRC}/sample-simple.cfg ${STAGEDIR}${PREFIX}/etc/glauth-config.cfg.sample .include