[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] Debian packaging fixes



Hi,

the attached patch fixes two problems in hobbit 4.2.0:

1.) The package build-depends on librrd0-dev. Alternatively, librrd2-dev
can be used, which is present in Debian etch.

2.) In the postinst script of hobbit-client, the used single quotes
prevent the variable from being replaced by sed. Instead, double quotes
should be used.

Best regards,
Andreas
diff -Naur hobbit-4.2.0.orig/debian/control hobbit-4.2.0/debian/control
--- hobbit-4.2.0.orig/debian/control	2006-08-09 22:10:17.000000000 +0200
+++ hobbit-4.2.0/debian/control	2007-10-07 21:32:51.000000000 +0200
@@ -2,7 +2,7 @@
 Section: net
 Priority: optional
 Maintainer: Henrik Stoerner <henrik (at) hswn.dk>
-Build-Depends: debhelper (>= 4.0.0), librrd0-dev, libssl-dev, libldap2-dev, libpcre3-dev, fping
+Build-Depends: debhelper (>= 4.0.0), librrd0-dev | librrd2-dev, libssl-dev, libldap2-dev, libpcre3-dev, fping
 Standards-Version: 3.6.1
 
 Package: hobbit
diff -Naur hobbit-4.2.0.orig/debian/hobbit-client.postinst hobbit-4.2.0/debian/hobbit-client.postinst
--- hobbit-4.2.0.orig/debian/hobbit-client.postinst	2006-08-09 22:10:17.000000000 +0200
+++ hobbit-4.2.0/debian/hobbit-client.postinst	2007-10-07 21:32:23.000000000 +0200
@@ -36,8 +36,8 @@
 	db_stop
 
         # Update configuration file
-	sed -e 's/^HOBBITSERVERS=.*/HOBBITSERVERS=\"${HOBBITSERVERS}\"/'	\
-	    -e 's/^CLIENTHOSTNAME=.*/CLIENTHOSTNAME=\"${CLIENTHOSTNAME}\"/'	\
+	sed -e "s/^HOBBITSERVERS=.*/HOBBITSERVERS=\"${HOBBITSERVERS}\"/"	\
+	    -e "s/^CLIENTHOSTNAME=.*/CLIENTHOSTNAME=\"${CLIENTHOSTNAME}\"/"	\
 	    < $CONFIGFILE > $CONFIGFILE.tmp
 	mv -f $CONFIGFILE.tmp $CONFIGFILE
     ;;