[arch-commits] Commit in trac/trunk (PKGBUILD trac.install tracd.conf tracd.service)

Sergej Pupykin spupykin at nymeria.archlinux.org
Fri Sep 13 09:21:00 UTC 2013


    Date: Friday, September 13, 2013 @ 11:20:59
  Author: spupykin
Revision: 97121

upgpkg: trac 1.0.1-5

upd

Modified:
  trac/trunk/PKGBUILD
  trac/trunk/trac.install
  trac/trunk/tracd.service
Deleted:
  trac/trunk/tracd.conf

---------------+
 PKGBUILD      |   11 ++++-------
 trac.install  |   25 ++-----------------------
 tracd.conf    |   14 --------------
 tracd.service |    4 ++--
 4 files changed, 8 insertions(+), 46 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2013-09-13 08:52:49 UTC (rev 97120)
+++ PKGBUILD	2013-09-13 09:20:59 UTC (rev 97121)
@@ -4,7 +4,7 @@
 
 pkgname=trac
 pkgver=1.0.1
-pkgrel=4
+pkgrel=5
 pkgdesc="Trac Integrated SCM & Project Management using Apache & Subversion."
 arch=('any')
 url="http://trac.edgewall.org/"
@@ -15,12 +15,10 @@
 backup=("etc/conf.d/tracd.conf")
 source=(http://ftp.edgewall.com/pub/trac/Trac-$pkgver.tar.gz
 	license.txt
-	tracd.service
-	tracd.conf)
+	tracd.service)
 md5sums=('c869fa40e29fa4597e2c9c960de9f2f3'
          'af9a4064fd7a5759fee0fc288f749977'
-         '6dc659f6a4c0247173ae7fab4d8fee6e'
-         '67db455554d661c725baf3057bd13534')
+         '36bad295c72e8f147724e40840ff3774')
 
 package() {
   cd $srcdir/Trac-$pkgver
@@ -34,8 +32,7 @@
   done
 
   python2 setup.py install --prefix=/usr --root=$pkgdir
-  install -D -m644 ../tracd.conf $pkgdir/etc/conf.d/tracd.conf
-  install -D -m644 ../license.txt $pkgdir/usr/share/licenses/trac/license.txt
+  install -D -m644 $srcdir/license.txt $pkgdir/usr/share/licenses/trac/license.txt
   install -D -m0755 contrib/cgi-bin/trac.cgi $pkgdir/usr/share/trac/trac.cgi
   install -D -m0755 contrib/cgi-bin/trac.fcgi $pkgdir/usr/share/trac/trac.fcgi
   install -Dm0644 $srcdir/tracd.service $pkgdir/usr/lib/systemd/system/tracd.service

Modified: trac.install
===================================================================
--- trac.install	2013-09-13 08:52:49 UTC (rev 97120)
+++ trac.install	2013-09-13 09:20:59 UTC (rev 97121)
@@ -1,32 +1,11 @@
-pre_install() {
-  /bin/true
-}
-
 post_install() {
+  echo "-- tracd.service is an example. Copy it into /etc/systemd/... and edit"
   echo "-- Please read http://trac.edgewall.org/wiki/TracInstall to install"
   echo "-- additional requirements"
   echo "--"
   echo "-- DB engines are mandatory!!!"
-  /bin/true
 }
 
-pre_upgrade() {
-  /bin/true
-}
-
 post_upgrade() {
-  echo "-- Please read http://trac.edgewall.org/wiki/TracInstall to install"
-  echo "-- additional requirements"
-  echo "--"
-  echo "-- DB engines are mandatory!!!"
-  /bin/true
+  echo "-- tracd.service is an example. Copy it into /etc/systemd/... and edit"
 }
-
-pre_remove() {
-  /bin/true
-}
-
-post_remove() {
-  /bin/true
-}
-

Deleted: tracd.conf
===================================================================
--- tracd.conf	2013-09-13 08:52:49 UTC (rev 97120)
+++ tracd.conf	2013-09-13 09:20:59 UTC (rev 97121)
@@ -1,14 +0,0 @@
-# configuration for trac standalone daemon
-# see http://projects.edgewall.com/trac/wiki/TracStandalone
-#
-
-# PORT : port to be used by tracd ( option -p )
-PORT=8080
-
-# AUTH : file to use for authentication
-# format :  project,digestfile,realm
-AUTH=
-
-# PROJECT : list of project to serve, you can place more than one project.
-# PROJECT="/path/to/project1 /path/to/project2"
-PROJECT= 

Modified: tracd.service
===================================================================
--- tracd.service	2013-09-13 08:52:49 UTC (rev 97120)
+++ tracd.service	2013-09-13 09:20:59 UTC (rev 97121)
@@ -4,8 +4,8 @@
 
 [Service]
 Type=forking
-EnvironmentFile=/etc/conf.d/tracd.conf
-ExecStart=tracd -d $HOSTNAME -p $PORT --auth ${AUTH//;/ --auth } $PROJECT
+# Example: copy it into /etc/systemd/ and edit.
+ExecStart=/usr/bin/tracd -d -b localhost -p 8080 --auth /tmp,/tmp/passwd,realm /tmp
 
 [Install]
 WantedBy=multi-user.target




More information about the arch-commits mailing list