mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-26 05:02:18 +00:00
net-p2p/bazarr-devel: Read package_info to be inline with the other *arrs
radarr, sonarr, lidarr and prowlarr read package info from a file package_info. bazarr has this functionality as well, and this patch implements this in the FreeBSD package. This info is shown in the status page, and helps with support questions. PR: 261897
This commit is contained in:
parent
06c47417d1
commit
83c9167ae5
@ -1,6 +1,7 @@
|
||||
PORTNAME= bazarr
|
||||
DISTVERSIONPREFIX= v
|
||||
DISTVERSION= 1.0.3-beta.28
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= net-p2p python
|
||||
MASTER_SITES= https://github.com/morpheus65535/bazarr/releases/download/${DISTVERSIONPREFIX}${DISTVERSION}/
|
||||
PKGNAMESUFFIX= -devel
|
||||
@ -23,7 +24,10 @@ USES= python:3.7+ zip
|
||||
|
||||
USE_RC_SUBR= bazarr
|
||||
|
||||
SUB_FILES= ${PORTNAME} package_info
|
||||
SUB_LIST= PYTHON_CMD=${PYTHON_CMD} \
|
||||
MAINTAINER=${MAINTAINER} \
|
||||
PKGVERSION=${PKGVERSION} \
|
||||
USERS=${USERS}
|
||||
|
||||
NO_WRKSUBDIR= yes
|
||||
@ -36,10 +40,11 @@ do-build:
|
||||
@${PYTHON_CMD} -O -m compileall ${WRKSRC}
|
||||
|
||||
do-install:
|
||||
${INSTALL} -d -m 755 ${STAGEDIR}/${DATADIR}
|
||||
cd ${WRKSRC} && ${COPYTREE_SHARE} \* ${STAGEDIR}/${DATADIR}
|
||||
${INSTALL} -d -m 755 ${STAGEDIR}/${DATADIR}/bin/
|
||||
cd ${WRKSRC} && ${COPYTREE_SHARE} \* ${STAGEDIR}/${DATADIR}/bin/
|
||||
|
||||
post-install:
|
||||
${INSTALL_DATA} ${WRKDIR}/package_info ${STAGEDIR}/${DATADIR}/
|
||||
@${FIND} -s ${STAGEDIR} -not -type d | ${SORT} | \
|
||||
${SED} -e 's#^${STAGEDIR}${PREFIX}/##' >> ${TMPPLIST}
|
||||
|
||||
|
@ -29,7 +29,7 @@ load_rc_config ${name}
|
||||
pidfile="${bazarr_datadir}/bazarr.pid"
|
||||
procname="%%PYTHON_CMD%%"
|
||||
command="/usr/sbin/daemon"
|
||||
command_args="-f -p ${pidfile} ${procname} %%DATADIR%%/bazarr.py --no-update -c ${bazarr_datadir}"
|
||||
command_args="-f -p ${pidfile} ${procname} %%DATADIR%%/bin/bazarr.py --no-update -c ${bazarr_datadir}"
|
||||
start_precmd=bazarr_precmd
|
||||
|
||||
bazarr_precmd()
|
||||
|
5
net-p2p/bazarr-devel/files/package_info.in
Normal file
5
net-p2p/bazarr-devel/files/package_info.in
Normal file
@ -0,0 +1,5 @@
|
||||
PackageVersion=%%PKGVERSION%%
|
||||
PackageAuthor=%%MAINTAINER%%
|
||||
UpdateMethod=External
|
||||
UpdateMethodMessage=use 'pkg upgrade' or [create a PR](https://bugs.freebsd.org/bugzilla/enter_bug.cgi?component=Individual%20Port%28s%29&product=Ports%20%26%20Packages) requesting an update of the port
|
||||
Branch=development
|
Loading…
Reference in New Issue
Block a user