X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=debian%2Frules;h=a7b64f63ff02f6d106c95adcf58ef358f252cf5b;hb=53e0357a4ed99bed2b77c221925df915d08f581c;hp=9b375b056984d8231e47be4e43b8022745745dc5;hpb=b96240874bea09738e2385886998708753432276;p=pkg-libkohana2-php.git diff --git a/debian/rules b/debian/rules index 9b375b0..a7b64f6 100755 --- a/debian/rules +++ b/debian/rules @@ -1,35 +1,24 @@ #!/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 - - - - -configure: configure-stamp -configure-stamp: - dh_testdir - # Add here commands to configure the package. - - touch configure-stamp - +get-orig-source: + uscan --force --verbose --repack --rename 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 @@ -39,46 +28,49 @@ 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 + + cp -a modules $(CURDIR)/debian/libkohana2-modules-php/usr/share/php/kohana2/ + rm -f $(CURDIR)/debian/libkohana2-modules-php/usr/share/php/kohana2/modules/kodoc/views/kodoc/media/js/jquery.js + ln -s /usr/share/javascript/jquery/jquery.js \ + $(CURDIR)/debian/libkohana2-modules-php/usr/share/php/kohana2/modules/kodoc/views/kodoc/media/js/jquery.js + + # fix permissions + for file in `find $(CURDIR)/debian/libkohana2-* -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/ + rmdir debian/libkohana2-modules-php/usr/share/php/kohana2/modules/archive/i18n/el_GR/ + rmdir debian/libkohana2-modules-php/usr/share/php/kohana2/modules/auth/controllers/ + rmdir debian/libkohana2-modules-php/usr/share/php/kohana2/modules/auth/views/ + rmdir debian/libkohana2-modules-php/usr/share/php/kohana2/modules/kodoc/views/kodoc/media/css/ + rmdir debian/libkohana2-modules-php/usr/share/php/kohana2/modules/payment/i18n/el_GR/ + rmdir debian/libkohana2-modules-php/usr/share/php/kohana2/modules/payment/i18n/es_AR/ + rmdir debian/libkohana2-modules-php/usr/share/php/kohana2/modules/payment/i18n/zh_CN/ -# 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