2ed8eedb14
PR: 292051 Reported by: Igor Pavlov <igor.arabesc.pavlov@gmail.com> Author: Hiroo Ono <hiroo.ono+freebsd@gmail.com>
46 lines
1.1 KiB
Makefile
46 lines
1.1 KiB
Makefile
PORTNAME= wsdd
|
|
DISTVERSIONPREFIX= v
|
|
DISTVERSION= 0.9
|
|
PORTREVISION= 1
|
|
CATEGORIES= net python
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= hiroo.ono+freebsd@gmail.com
|
|
COMMENT= Web Service Discovery (WSD) host daemon for Samba
|
|
WWW= https://github.com/christgau/wsdd
|
|
|
|
LICENSE= MIT
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
USES= python:run shebangfix
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= christgau
|
|
SHEBANG_FILES= src/${PORTNAME}.py
|
|
NO_ARCH= yes
|
|
NO_BUILD= yes
|
|
|
|
USERS= _wsdd
|
|
GROUPS= _wsdd
|
|
|
|
PLIST_FILES= bin/${PORTNAME} \
|
|
etc/rc.d/${PORTNAME} \
|
|
share/man/man8/${PORTNAME}.8.gz
|
|
SUB_FILES= pkg-message
|
|
|
|
post-patch:
|
|
${REINPLACE_CMD} \
|
|
-e 's|%%PYTHON_CMD%%|${PYTHON_CMD}|' \
|
|
-e 's|%%LOCALBASE%%|${LOCALBASE}|' \
|
|
${WRKSRC}/etc/rc.d/${PORTNAME}.freebsd
|
|
|
|
do-install:
|
|
${INSTALL_SCRIPT} ${WRKSRC}/src/${PORTNAME}.py \
|
|
${STAGEDIR}${PREFIX}/bin/${PORTNAME}
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/etc/rc.d
|
|
${INSTALL_SCRIPT} ${WRKSRC}/etc/rc.d/${PORTNAME}.freebsd \
|
|
${STAGEDIR}${PREFIX}/etc/rc.d/${PORTNAME}
|
|
${INSTALL_MAN} ${WRKSRC}/man/${PORTNAME}.8 \
|
|
${STAGEDIR}${PREFIX}/share/man/man8/
|
|
|
|
.include <bsd.port.mk>
|