[Pkg-golang-commits] [golang] 01/01: Remove debconf bits that are no longer necessary
Tianon Gravi
tianon at debian.org
Fri Sep 25 21:01:42 UTC 2015
This is an automated email from the git hooks/post-receive script.
tianon pushed a commit to branch debian-experimental
in repository golang.
commit 07c2a7ed7d7a5b4c90155a020d04caf52978ff44
Author: Tianon Gravi <tianon at debian.org>
Date: Fri Sep 25 14:01:11 2015 -0700
Remove debconf bits that are no longer necessary
---
debian/control | 1 -
debian/golang-go.config | 9 ---------
debian/golang-go.postinst | 16 ----------------
debian/golang-go.postrm | 19 -------------------
4 files changed, 45 deletions(-)
diff --git a/debian/control b/debian/control
index fa5cafc..b9ffd18 100644
--- a/debian/control
+++ b/debian/control
@@ -9,7 +9,6 @@ Vcs-Browser: https://anonscm.debian.org/cgit/pkg-golang/golang.git
Vcs-Git: git://anonscm.debian.org/pkg-golang/golang.git
Build-Depends: debhelper (>= 7.4.10), bison, ed, mawk | awk, perl, netbase,
golang-go (>= 2:1.4.2-2~) | gccgo-5
-Build-Depends-Indep: po-debconf
Standards-Version: 3.9.6
Homepage: https://golang.org
diff --git a/debian/golang-go.config b/debian/golang-go.config
deleted file mode 100644
index f714921..0000000
--- a/debian/golang-go.config
+++ /dev/null
@@ -1,9 +0,0 @@
-#!/bin/sh
-
-set -e
-
-. /usr/share/debconf/confmodule
-
-# Cleanup old debconf dashboard question that was removed in golang-go 2:1.1
-# -- 2013-05-14 stapelberg
-db_purge
diff --git a/debian/golang-go.postinst b/debian/golang-go.postinst
index ca3f089..1c3d879 100644
--- a/debian/golang-go.postinst
+++ b/debian/golang-go.postinst
@@ -1,24 +1,8 @@
#!/bin/sh
-
-confdir=/etc/golang
-conffile=$confdir/goinstall.conf
-
set -e
-. /usr/share/debconf/confmodule
-
-# Cleanup old debconf dashboard question that was removed in golang-go 2:1.1
-# -- 2013-05-14 stapelberg
-db_purge
-
case "$1" in
configure)
- # Remove obsolete goinstall.conf.
- # -- 2013-05-14 stapelberg
- if [ -e $conffile ]; then
- rm -f $conffile
- rmdir /etc/golang || true
- fi
# Very ugly hack to set timestamps same as /usr/lib/go/bin/go
find /usr/lib/go/pkg -exec touch -r /usr/lib/go/bin/go {} \;
# Setup alternatives
diff --git a/debian/golang-go.postrm b/debian/golang-go.postrm
deleted file mode 100644
index 2cf582e..0000000
--- a/debian/golang-go.postrm
+++ /dev/null
@@ -1,19 +0,0 @@
-#!/bin/sh
-
-set -e
-
-# purge the config file which is created in the postinst script
-if [ "$1" = purge ] ; then
- rm -f /etc/golang/goinstall.conf
- rmdir /etc/golang || true
-fi
-
-if [ "$1" = "purge" ] && [ -e /usr/share/debconf/confmodule ]; then
- # Source debconf library.
- . /usr/share/debconf/confmodule
- # Remove my changes to the db.
- db_purge
-fi
-
-#DEBHELPER#
-
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-golang/golang.git
More information about the pkg-golang-commits
mailing list