Greetings, While reporting bug #330726 suggesting that dh-make-php move to the use of CDDB, I realized that it wouldn't be that hard to create /usr/share/cdbs/1/rules/pearpackage.mk to provide a common, centrally maintained build file that we could all use in our Pear packages. The main contents would be something like: include /usr/share/cdbs/1/rules/debhelper.mk # PEAR_PKG must be set somehow # DEBIAN_PKG must be set somehow PEAR=/usr/bin/pear PEAR_PHP_DIR=/usr/share/php SOURCE_DIR=`ls -d $(PEAR_PKG)-*` common-configure-indep:: ln -f -s ../package.xml $(SOURCE_DIR) xsltproc --nonet --novalid debian/changelog.xsl package.xml > debian/Changelog clean:: rm -f debian/pearrc debian/Changelog $(SOURCE_DIR)/package.xml common-install-indep:: $(PEAR) install --nodeps -R debian/$(DEBIAN_PKG) $(SOURCE_DIR)/package.xml # remove unwanted files rm -f debian/pearrc \ debian/$(DEBIAN_PKG)$(PEAR_PHP_DIR)/.lock \ debian/$(DEBIAN_PKG)$(PEAR_PHP_DIR)/.filemap # move documentation to correct location mkdir -p debian/$(DEBIAN_PKG)/usr/share/doc/$(DEBIAN_PKG) mv -i debian/$(DEBIAN_PKG)$(PEAR_PHP_DIR)/docs/$(PEAR_PKG)/* debian/$(DEBIAN_PKG)/usr/share/doc/$(DEBIAN_PKG) rmdir debian/$(DEBIAN_PKG)$(PEAR_PHP_DIR)/docs/$(PEAR_PKG) ln -s ../../doc/$(DEBIAN_PKG) debian/$(DEBIAN_PKG)$(PEAR_PHP_DIR)/docs/$(PEAR_PKG) What do you guys think? One big benefit is that even after making a package with dh-make-php (or even by hand), a small set of agreed upon general rules would always be adhered to, and could be improved over time as necessary. Charles -- A man A miss A car--a curve He kissed the miss And missed the curve Burma-Shave http://burma-shave.org/jingles/1948/a_man
Attachment:
signature.asc
Description: Digital signature