svn commit: r429565 - in head/net-p2p/couchpotato: . files

Mark Felder feld at FreeBSD.org
Mon Dec 26 18:48:31 UTC 2016


Author: feld
Date: Mon Dec 26 18:48:29 2016
New Revision: 429565
URL: https://svnweb.freebsd.org/changeset/ports/429565

Log:
  net-p2p/couchpotato: Provision ETCDIR in rc script, not in package.
  
  CouchPotato creates the config file on first run. If you choose to run
  with a custom user you will want the rc script to provision the ETCDIR
  with the correct ownership.

Modified:
  head/net-p2p/couchpotato/Makefile
  head/net-p2p/couchpotato/files/couchpotato.in
  head/net-p2p/couchpotato/pkg-plist

Modified: head/net-p2p/couchpotato/Makefile
==============================================================================
--- head/net-p2p/couchpotato/Makefile	Mon Dec 26 18:45:01 2016	(r429564)
+++ head/net-p2p/couchpotato/Makefile	Mon Dec 26 18:48:29 2016	(r429565)
@@ -3,6 +3,7 @@
 
 PORTNAME=	couchpotato
 PORTVERSION=	0.0.20161225
+PORTREVISION=	1
 CATEGORIES=	net-p2p python
 
 MAINTAINER=	feld at FreeBSD.org
@@ -29,7 +30,7 @@ GH_PROJECT=	CouchPotatoServer
 GH_TAGNAME=	b538f9a
 
 do-install:
-	${MKDIR} ${STAGEDIR}/${DATADIR} ${STAGEDIR}/${ETCDIR}
+	${MKDIR} ${STAGEDIR}/${DATADIR}
 	(cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR})
 
 .include <bsd.port.mk>

Modified: head/net-p2p/couchpotato/files/couchpotato.in
==============================================================================
--- head/net-p2p/couchpotato/files/couchpotato.in	Mon Dec 26 18:45:01 2016	(r429564)
+++ head/net-p2p/couchpotato/files/couchpotato.in	Mon Dec 26 18:48:29 2016	(r429565)
@@ -42,6 +42,9 @@ couch_pre()
 	if [ ! -d ${pidfile%/*} ]; then
 		install -d -o ${couchpotato_user} ${pidfile%/*}
 	fi
+	if [ ! -d ${couchpotato_conf%/*} ]; then
+		install -d -o ${couchpotato_user} ${couchpotato_conf%/*}
+	fi
 }
 
 run_rc_command "$1"

Modified: head/net-p2p/couchpotato/pkg-plist
==============================================================================
--- head/net-p2p/couchpotato/pkg-plist	Mon Dec 26 18:45:01 2016	(r429564)
+++ head/net-p2p/couchpotato/pkg-plist	Mon Dec 26 18:48:29 2016	(r429565)
@@ -1005,4 +1005,3 @@
 %%DATADIR%%/package.json
 %%DATADIR%%/requirements-dev.txt
 %%DATADIR%%/version.py
- at dir(nobody,wheel,755) %%ETCDIR%%


More information about the svn-ports-head mailing list