=================================================================== RCS file: /home/cvs/OpenXM/misc/packages/Linux/Debian2/debian/rules,v retrieving revision 1.1.1.1 retrieving revision 1.4 diff -u -p -r1.1.1.1 -r1.4 --- OpenXM/misc/packages/Linux/Debian2/debian/rules 2006/02/08 08:52:53 1.1.1.1 +++ OpenXM/misc/packages/Linux/Debian2/debian/rules 2019/02/19 00:41:13 1.4 @@ -6,11 +6,13 @@ # architecture-dependant package, as well as an architecture-independent # package. +PACKAGE=$(shell dh_listpackages) + # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 # This is the debhelper compatability version to use. -export DH_COMPAT=1 +#export DH_COMPAT=1 # This has to be exported to make some magic below work. export DH_OPTIONS @@ -32,19 +34,23 @@ clean: dh_testdir dh_testroot rm -f build-stamp - dh_clean + dh_clean -d install: DH_OPTIONS= install: build dh_testdir dh_testroot - dh_clean -k +# dh_clean -k + dh_prep dh_installdirs mkdir -p ${INST_PREFIX} + mkdir -p ${INST_PREFIX}/bin tar cf - --exclude CVS OpenXM | (cd ${INST_PREFIX} ; tar xf -) install OpenXM/bin/oxfetch.sh ${INST_PREFIX}/bin # copying icons for KDE. - cp ${OpenXM_HOME}/rc/kde/openxm-binary-knoppix ${INST_PREFIX}/../../usr/lib/menu/openxm-binary + mkdir -p ${INST_PREFIX}/../../usr/lib/menu + mkdir -p ${INST_PREFIX}/../../usr/share/pixmaps + cp ${OpenXM_HOME}/rc/kde/openxm-knoppix ${INST_PREFIX}/../../usr/lib/menu/openxm cp ${OpenXM_HOME}/doc/OpenXM-web/hopo_std_color.xpm ${OpenXM_HOME}/doc/OpenXM-web/logo-openxm2-color.xpm ${INST_PREFIX}/../../usr/share/pixmaps #dh_movefiles @@ -56,31 +62,19 @@ binary-indep: build install binary-arch: DH_OPTIONS=-a binary-arch: build install # Need this version of debhelper for DH_OPTIONS to work. - dh_testversion 1.1.17 +# dh_testversion 1.1.17 dh_testdir dh_testroot -# dh_installdebconf + dh_installdirs dh_installdocs - dh_installexamples - dh_installmenu -# dh_installemacsen -# dh_installpam -# dh_installinit - dh_installcron -# dh_installmanpages - dh_installinfo -# dh_undocumented dh_installchangelogs - dh_strip - dh_link - dh_compress - dh_fixperms - # You may want to make some executables suid here. - dh_suidregister + +# Copy the packages's files. + cp -a debian/tmp/usr debian/${PACKAGE} + + dh_makeshlibs dh_installdeb -# dh_makeshlibs -# dh_perl - dh_shlibdeps + -dh_shlibdeps dh_gencontrol dh_md5sums dh_builddeb