[Pkg-privacy-commits] [flashproxy] 06/65: install config symlinks with dh_link rather than postinst

Ximin Luo infinity0 at moszumanska.debian.org
Fri Aug 21 13:49:39 UTC 2015


This is an automated email from the git hooks/post-receive script.

infinity0 pushed a commit to branch _volatile-rc
in repository flashproxy.

commit 81f9c03d0facdf4a926af94df7bff9f087920163
Author: Ximin Luo <infinity0 at gmx.com>
Date:   Tue Jan 7 14:45:27 2014 +0000

    install config symlinks with dh_link rather than postinst
---
 debian/flashproxy-facilitator.links    | 4 +++-
 debian/flashproxy-facilitator.postinst | 6 ------
 debian/flashproxy-facilitator.postrm   | 5 -----
 3 files changed, 3 insertions(+), 12 deletions(-)

diff --git a/debian/flashproxy-facilitator.links b/debian/flashproxy-facilitator.links
index 0e250e7..2c3abd6 100644
--- a/debian/flashproxy-facilitator.links
+++ b/debian/flashproxy-facilitator.links
@@ -1 +1,3 @@
-usr/share/flashproxy-facilitator/examples usr/share/doc/flashproxy-facilitator/examples
+usr/share/flashproxy-facilitator/examples              usr/share/doc/flashproxy-facilitator/examples
+usr/share/flashproxy-facilitator/appengine/fp-reg.go   etc/flashproxy/reg-appspot/fp-reg.go
+usr/share/flashproxy-facilitator/appengine/app.yaml    etc/flashproxy/reg-appspot/app.yaml
diff --git a/debian/flashproxy-facilitator.postinst b/debian/flashproxy-facilitator.postinst
index 98d9c5a..92b564b 100644
--- a/debian/flashproxy-facilitator.postinst
+++ b/debian/flashproxy-facilitator.postinst
@@ -20,8 +20,6 @@ set -e
 fpfacilitatoruser=fp-facilitator
 pkgconfdir=/etc/flashproxy
 exampledir=/usr/share/flashproxy-facilitator/examples
-appengineconfdir=${pkgconfdir}/reg-appspot
-appenginedir=/usr/share/flashproxy-facilitator/appengine
 
 case "$1" in
     configure)
@@ -50,10 +48,6 @@ case "$1" in
         test -f ${pkgconfdir}/reg-email.pass || { \
           install -m 600 /dev/null ${pkgconfdir}/reg-email.pass && \
           cat ${exampledir}/reg-email.pass > ${pkgconfdir}/reg-email.pass; }
-        # install symlinks
-        for i in fp-reg.go app.yaml; do \
-          ln -s -f ${appenginedir}/$i ${appengineconfdir}/$i; \
-        done
     ;;
 
     abort-upgrade|abort-remove|abort-deconfigure)
diff --git a/debian/flashproxy-facilitator.postrm b/debian/flashproxy-facilitator.postrm
index e322aff..22b3c0c 100644
--- a/debian/flashproxy-facilitator.postrm
+++ b/debian/flashproxy-facilitator.postrm
@@ -19,14 +19,9 @@ set -e
 # the debian-policy package
 
 pkgconfdir=/etc/flashproxy
-appengineconfdir=${pkgconfdir}/reg-appspot
 
 case "$1" in
     purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
-        # remove symlinks
-        for i in fp-reg.go app.yaml; do \
-          rm -f ${appengineconfdir}/$i; \
-        done
         if [ "$1" = "purge" ]; then
             # remove secrets
             for i in reg-daemon.key reg-daemon.pub reg-email.pass; do \

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/flashproxy.git



More information about the Pkg-privacy-commits mailing list