[Pkg-voip-commits] r1144 - asterisk-addons/trunk/debian
Tzafrir Cohen
tzafrir-guest at costa.debian.org
Fri Jan 6 19:48:00 UTC 2006
Author: tzafrir-guest
Date: 2006-01-06 19:47:59 +0000 (Fri, 06 Jan 2006)
New Revision: 1144
Modified:
asterisk-addons/trunk/debian/rules
Log:
* clean ooh323c properly
* don't create unnecessary postinst scripts
Modified: asterisk-addons/trunk/debian/rules
===================================================================
--- asterisk-addons/trunk/debian/rules 2006-01-06 18:56:39 UTC (rev 1143)
+++ asterisk-addons/trunk/debian/rules 2006-01-06 19:47:59 UTC (rev 1144)
@@ -34,6 +34,10 @@
configure-stamp: patch-stamp
dh_testdir
# Add here commands to configure the package.
+ if [ ! -f asterisk-ooh323c/config.h_dist ]; then \
+ mv asterisk-ooh323c/config.h asterisk-ooh323c/config.h_dist ; \
+ fi
+ cd asterisk-ooh323c; ./configure
touch $@
@@ -45,6 +49,8 @@
build-arch-stamp: configure-stamp
$(MAKE)
#cd res_sqlite3; $(MAKE)
+ # save the default config.h that is shipped with ooh323c
+ # we'll restore it on clean:
cd asterisk-ooh323c; $(MAKE)
touch $@
@@ -63,7 +69,11 @@
# Add here commands to clean up after the build process.
-$(MAKE) clean
- cd asterisk-ooh323c; $(MAKE) clean
+ cd asterisk-ooh323c; $(MAKE) distclean || true
+ # and now restore the original config.h
+ if [ -f asterisk-ooh323c/config.h_dist ]; then \
+ mv asterisk-ooh323c/config.h_dist asterisk-ooh323c/config.h ; \
+ fi
dh_clean
@@ -126,7 +136,8 @@
dh_fixperms
# dh_perl
# dh_python
- dh_makeshlibs
+# # -n: there are no /usr/lib libraries inthis package
+ dh_makeshlibs -n
dh_installdeb
dh_shlibdeps
dh_gencontrol
More information about the Pkg-voip-commits
mailing list