[Pkg-haskell-commits] darcs: haskell-configfile: More debian/ work

John Goerzen jgoerzen at complete.org
Fri Jan 4 14:33:39 UTC 2013


Wed Oct  6 02:52:37 UTC 2004  John Goerzen <jgoerzen at complete.org>
  * More debian/ work
  Ignore-this: 155d746a628cf962477df627fa770954
  
  Keywords: 
  
  
  (jgoerzen at complete.org--projects/missingh--head--1.0--patch-28)

     ./libghc6-missingh-dev.postinst -> ./libghc6-missingh-dev.postinst.tmpl
     ./libghc6-missingh-prerm -> ./libghc6-missingh-dev.prerm.tmpl
    M ./control -1 +1
    R ./dirs
    A ./libghc6-missingh-dev.dirs
    M ./libghc6-missingh-dev.postinst.tmpl -1 +1
    M ./libghc6-missingh-dev.prerm.tmpl -1 +1
    R ./missingh-dev.dirs
    A ./missingh-doc.docs
    R ./missingh1.dirs
    M ./rules -3 +10

Wed Oct  6 02:52:37 UTC 2004  John Goerzen <jgoerzen at complete.org>
  * More debian/ work
  Ignore-this: 155d746a628cf962477df627fa770954
  
  Keywords: 
  
  
  (jgoerzen at complete.org--projects/missingh--head--1.0--patch-28)
diff -rN -u old-haskell-configfile-1//control new-haskell-configfile-1//control
--- old-haskell-configfile-1//control	2013-01-04 14:33:35.059557621 +0000
+++ new-haskell-configfile-1//control	2013-01-04 14:33:39.303749824 +0000
@@ -1,7 +1,7 @@
 Source: missingh
 Priority: optional
 Maintainer: John Goerzen <jgoerzen at complete.org>
-Build-Depends: debhelper (>= 4.0.0), ghc6 (>= 6.2.1), ghc6 (<< 6.2.2)
+Build-Depends: debhelper (>= 4.0.0), ghc6 (>= 6.2.1), ghc6 (<< 6.2.2), ssed
 Build-Depends-Indep: debhelper (>= 4.0.0), haddock
 Standards-Version: 3.6.1
 
diff -rN -u old-haskell-configfile-1//dirs new-haskell-configfile-1//dirs
--- old-haskell-configfile-1//dirs	2013-01-04 14:33:35.059557621 +0000
+++ new-haskell-configfile-1//dirs	1970-01-01 00:00:00.000000000 +0000
@@ -1,2 +0,0 @@
-usr/bin
-usr/sbin
diff -rN -u old-haskell-configfile-1//libghc6-missingh-dev.postinst new-haskell-configfile-1//libghc6-missingh-dev.postinst
--- old-haskell-configfile-1//libghc6-missingh-dev.postinst	2013-01-04 14:33:35.059557621 +0000
+++ new-haskell-configfile-1//libghc6-missingh-dev.postinst	1970-01-01 00:00:00.000000000 +0000
@@ -1,43 +0,0 @@
-#! /bin/sh
-# postinst script for missingh
-#
-# see: dh_installdeb(1)
-
-set -e
-
-# summary of how this script can be called:
-#        * <postinst> `configure' <most-recently-configured-version>
-#        * <old-postinst> `abort-upgrade' <new version>
-#        * <conflictor's-postinst> `abort-remove' `in-favour' <package>
-#          <new-version>
-#        * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
-#          <failed-install-package> <version> `removing'
-#          <conflicting-package> <version>
-# for details, see http://www.debian.org/doc/debian-policy/ or
-# the debian-policy package
-#
-
-case "$1" in
-    configure)
-        ghc-pkg -g --add-package \
-                < /usr/share/doc/libghc6-missingh-dev/installed-pkg-config
-    ;;
-
-    abort-upgrade|abort-remove|abort-deconfigure)
-
-    ;;
-
-    *)
-        echo "postinst called with unknown argument \`$1'" >&2
-        exit 1
-    ;;
-esac
-
-# dh_installdeb will replace this with shell code automatically
-# generated by other debhelper scripts.
-
-#DEBHELPER#
-
-exit 0
-
-
diff -rN -u old-haskell-configfile-1//libghc6-missingh-dev.postinst.tmpl new-haskell-configfile-1//libghc6-missingh-dev.postinst.tmpl
--- old-haskell-configfile-1//libghc6-missingh-dev.postinst.tmpl	1970-01-01 00:00:00.000000000 +0000
+++ new-haskell-configfile-1//libghc6-missingh-dev.postinst.tmpl	2013-01-04 14:33:39.190894129 +0000
@@ -0,0 +1,43 @@
+#! /bin/sh
+# postinst script for missingh
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+#        * <postinst> `configure' <most-recently-configured-version>
+#        * <old-postinst> `abort-upgrade' <new version>
+#        * <conflictor's-postinst> `abort-remove' `in-favour' <package>
+#          <new-version>
+#        * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
+#          <failed-install-package> <version> `removing'
+#          <conflicting-package> <version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+#
+
+case "$1" in
+    configure)
+        ghc-pkg -g --add-package \
+                < /usr/lib/haskell-packages/ghc6/lib/MissingH-@@VERSION@@/installed-pkg-config
+    ;;
+
+    abort-upgrade|abort-remove|abort-deconfigure)
+
+    ;;
+
+    *)
+        echo "postinst called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
+
+
diff -rN -u old-haskell-configfile-1//libghc6-missingh-dev.prerm.tmpl new-haskell-configfile-1//libghc6-missingh-dev.prerm.tmpl
--- old-haskell-configfile-1//libghc6-missingh-dev.prerm.tmpl	1970-01-01 00:00:00.000000000 +0000
+++ new-haskell-configfile-1//libghc6-missingh-dev.prerm.tmpl	2013-01-04 14:33:39.190894129 +0000
@@ -0,0 +1,41 @@
+#! /bin/sh
+# prerm script for missingh
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+#        * <prerm> `remove'
+#        * <old-prerm> `upgrade' <new-version>
+#        * <new-prerm> `failed-upgrade' <old-version>
+#        * <conflictor's-prerm> `remove' `in-favour' <package> <new-version>
+#        * <deconfigured's-prerm> `deconfigure' `in-favour'
+#          <package-being-installed> <version> `removing'
+#          <conflicting-package> <version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+    remove|upgrade|deconfigure)
+        ghc-pkg -r MissingH
+        rm /usr/lib/haskell-packages/ghc6/lib/MissingH-@@VERSION@@/HSMissingH*.o
+#       install-info --quiet --remove /usr/info/missingh.info.gz
+        ;;
+    failed-upgrade)
+        ;;
+    *)
+        echo "prerm called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
+
+
diff -rN -u old-haskell-configfile-1//libghc6-missingh-prerm new-haskell-configfile-1//libghc6-missingh-prerm
--- old-haskell-configfile-1//libghc6-missingh-prerm	2013-01-04 14:33:35.059557621 +0000
+++ new-haskell-configfile-1//libghc6-missingh-prerm	1970-01-01 00:00:00.000000000 +0000
@@ -1,41 +0,0 @@
-#! /bin/sh
-# prerm script for missingh
-#
-# see: dh_installdeb(1)
-
-set -e
-
-# summary of how this script can be called:
-#        * <prerm> `remove'
-#        * <old-prerm> `upgrade' <new-version>
-#        * <new-prerm> `failed-upgrade' <old-version>
-#        * <conflictor's-prerm> `remove' `in-favour' <package> <new-version>
-#        * <deconfigured's-prerm> `deconfigure' `in-favour'
-#          <package-being-installed> <version> `removing'
-#          <conflicting-package> <version>
-# for details, see http://www.debian.org/doc/debian-policy/ or
-# the debian-policy package
-
-
-case "$1" in
-    remove|upgrade|deconfigure)
-        ghc-pkg -r MissingH
-        rm /usr/lib/haskell-packages/ghc6/lib/MissingH-0.1.0/HSMissingH*.o
-#       install-info --quiet --remove /usr/info/missingh.info.gz
-        ;;
-    failed-upgrade)
-        ;;
-    *)
-        echo "prerm called with unknown argument \`$1'" >&2
-        exit 1
-    ;;
-esac
-
-# dh_installdeb will replace this with shell code automatically
-# generated by other debhelper scripts.
-
-#DEBHELPER#
-
-exit 0
-
-
diff -rN -u old-haskell-configfile-1//missingh1.dirs new-haskell-configfile-1//missingh1.dirs
--- old-haskell-configfile-1//missingh1.dirs	2013-01-04 14:33:35.059557621 +0000
+++ new-haskell-configfile-1//missingh1.dirs	1970-01-01 00:00:00.000000000 +0000
@@ -1 +0,0 @@
-usr/lib
diff -rN -u old-haskell-configfile-1//missingh-dev.dirs new-haskell-configfile-1//missingh-dev.dirs
--- old-haskell-configfile-1//missingh-dev.dirs	2013-01-04 14:33:35.059557621 +0000
+++ new-haskell-configfile-1//missingh-dev.dirs	1970-01-01 00:00:00.000000000 +0000
@@ -1,2 +0,0 @@
-usr/lib
-usr/include
diff -rN -u old-haskell-configfile-1//missingh-doc.docs new-haskell-configfile-1//missingh-doc.docs
--- old-haskell-configfile-1//missingh-doc.docs	1970-01-01 00:00:00.000000000 +0000
+++ new-haskell-configfile-1//missingh-doc.docs	2013-01-04 14:33:36.635622221 +0000
@@ -0,0 +1 @@
+html/*
diff -rN -u old-haskell-configfile-1//rules new-haskell-configfile-1//rules
--- old-haskell-configfile-1//rules	2013-01-04 14:33:35.059557621 +0000
+++ new-haskell-configfile-1//rules	2013-01-04 14:33:39.327719112 +0000
@@ -15,8 +15,9 @@
 
 export PATH
 LIBPATH=/usr/lib/haskell-packages/ghc6
+LIBNAME=MissingH
 PACKAGE=libghc6-missingh-dev
-
+VERSION:=$(shell dpkg-parsechangelog | grep Version | awk '{ print $$2 }')
 
 CFLAGS = -Wall -g
 
@@ -65,7 +66,7 @@
 
 	# Add here commands to clean up after the build process.
 	-$(MAKE) clean
-	rm -f .*config*
+	rm -f .*config* debian/$(PACKAGE).postinst debian/$(PACKAGE).prerm
 
 	dh_clean 
 
@@ -77,7 +78,13 @@
 
 	# Add here commands to install the package into debian/tmp
 	./setup install --install-prefix=$(CURDIR)/debian/$(PACKAGE)$(LIBPATH)
-	cp .installed-pkg-config $(CURDIR)/debian/$(PACKAGE)/usr/share/doc/$(PACKAGE)/installed-pkg-config
+	cp .installed-pkg-config $(CURDIR)/debian/$(PACKAGE)$(LIBPATH)/lib/$(LIBNAME)/installed-pkg-config
+	sed s/\@\@VERSION\@\@/$(VERSION)/g < \
+		debian/$(PACKAGE).postinst.tmpl > \
+		debian/$(PACKAGE).postinst
+	sed s/\@\@VERSION\@\@/$(VERSION)/g < \
+		debian/$(PACKAGE).prerm.tmpl > \
+		debian/$(PACKAGE).prerm
 
 builddocs: builddocs-stamp
 builddocs-stamp:





More information about the Pkg-haskell-commits mailing list