mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-25 00:51:21 +00:00
f6504d09fc
- Add LICENSE_FILE - Fix shebangs - Add NO_ARCH - Switch to options helpers Approved by: portmgr blanket
52 lines
1.2 KiB
Makefile
52 lines
1.2 KiB
Makefile
# Created by: thierry@pompo.net
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= neubot
|
|
PORTVERSION= 0.4.16.9
|
|
PORTREVISION= 2
|
|
CATEGORIES= net
|
|
MASTER_SITES= http://releases.neubot.org/_packages/
|
|
|
|
MAINTAINER= thierry@FreeBSD.org
|
|
COMMENT= Measures neutrality of your network connection in the background
|
|
|
|
LICENSE= GPLv3+
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sqlite3>0:databases/py-sqlite3@${PY_FLAVOR}
|
|
|
|
USES= python:2.7 shebangfix
|
|
SHEBANG_FILES= UNIX/bin/neubot
|
|
NO_BUILD= yes
|
|
NO_ARCH= yes
|
|
|
|
USERS= _neubot
|
|
GROUPS= _neubot
|
|
LSTATEDIR= /var
|
|
STATEDIR= ${LSTATEDIR}/${PORTNAME}
|
|
MAKE_ARGS= PYTHON=${PYTHON_CMD}
|
|
MAKE_ENV= LOCALSTATEDIR=${LSTATEDIR} MANDIR=${MANPREFIX}/man
|
|
|
|
USE_RC_SUBR= neubotd
|
|
INSTALLS_ICONS= yes
|
|
|
|
DOCS= AUTHORS BUGS ChangeLog PRIVACY README.rst TODO
|
|
|
|
SUB_FILES= pkg_message
|
|
SUB_LIST+= PYTHON_CMD=${PYTHON_CMD}
|
|
PKGMESSAGE= ${WRKDIR}/pkg_message
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
post-install:
|
|
${RM} -r ${STAGEDIR}${LSTATEDIR}
|
|
(cd ${STAGEDIR}${PREFIX} \
|
|
&& ${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py \
|
|
-d ${PREFIX} -f ${DATADIR:S;${PREFIX}/;;})
|
|
|
|
post-install-DOCS-on:
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${DOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
|
|
|
|
.include <bsd.port.mk>
|