X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=debian%2Frules;h=ceec4cc4fa721d627018d48c31a5db6d79f56435;hb=72b870c4e52719ca143bd197ac1084713773e676;hp=9a800ffca8f9b949884426266cb14d50c585d16d;hpb=aa29e004cdaa656ecdb904a5cec3f0768fbd2afb;p=pkg-libkohana2-php.git diff --git a/debian/rules b/debian/rules index 9a800ff..ceec4cc 100755 --- a/debian/rules +++ b/debian/rules @@ -1,5 +1,7 @@ #!/usr/bin/make -f -# -*- makefile -*- +# debian/rules for kohana2 +# +# Written by Sven Velt and Sebastian Harl . # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 @@ -7,28 +9,16 @@ get-orig-source: uscan --force --verbose --repack --rename -configure: configure-stamp -configure-stamp: - dh_testdir - # Add here commands to configure the package. - - touch configure-stamp - - build: build-stamp -build-stamp: configure-stamp +build-stamp: dh_testdir - # Add here commands to compile the package. - #$(MAKE) - #docbook-to-man debian/libkohana-php.sgml > libkohana-php.1 - touch $@ clean: dh_testdir dh_testroot - rm -f build-stamp configure-stamp + rm -f build-stamp dh_clean @@ -38,46 +28,36 @@ install: build dh_prep dh_installdirs - # Add here commands to install the package into debian/libkohana-php. - cp -a system $(CURDIR)/debian/libkohana-php/usr/share/php/kohana/ - # Remove DejaVu-Fonts and create symlink - rm -rf $(CURDIR)/debian/libkohana-php/usr/share/php/kohana/system/fonts - ln -s /usr/share/fonts/truetype/ttf-dejavu $(CURDIR)/debian/libkohana-php/usr/share/php/kohana/system/fonts + cp -a system $(CURDIR)/debian/libkohana2-php/usr/share/php/kohana2/ + + # remove DejaVu-Fonts and create symlink + rm -rf $(CURDIR)/debian/libkohana2-php/usr/share/php/kohana2/system/fonts + + # fix permissions + for file in `find $(CURDIR)/debian/libkohana2-php -name '*.php'`; do \ + chmod 644 $$file; \ + done + # remove empty directories + rmdir debian/libkohana2-php/usr/share/php/kohana2/system/i18n/el_GR/ + rmdir debian/libkohana2-php/usr/share/php/kohana2/system/tests/ -# Build architecture-independent files here. binary-indep: install dh_testdir dh_testroot dh_installchangelogs dh_installdocs dh_installexamples -# dh_install -# dh_installmenu -# dh_installdebconf -# dh_installlogrotate -# dh_installemacsen -# dh_installpam -# dh_installmime -# dh_installinit -# dh_installcron -# dh_installinfo -# dh_installwm -# dh_installudev dh_lintian -# dh_undocumented dh_installman dh_link dh_compress dh_fixperms -# dh_perl -# dh_python dh_installdeb dh_gencontrol dh_md5sums dh_builddeb -# Build architecture-dependent files here. binary-arch: install binary: binary-indep binary-arch