summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ca2b8ec)
raw | patch | inline | side by side (parent: ca2b8ec)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 14 Apr 2008 16:02:40 +0000 (16:02 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 14 Apr 2008 16:02:40 +0000 (16:02 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10442 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/dh-make-gosa | patch | blob | history |
diff --git a/gosa-core/dh-make-gosa b/gosa-core/dh-make-gosa
index 26f01427ba38f92d65d8b0f9af312d64b2d0fa4d..532939bee6d36459adbbc12e3e69ef8b1067e48b 100755 (executable)
--- a/gosa-core/dh-make-gosa
+++ b/gosa-core/dh-make-gosa
cd "$BUILD_PATH"
-find -name '.svn' -type d -exec rm -rf {} \; &> /dev/null
-
# Use gosa-plugin skelleton
echo "Calling dh_make..."
echo | dh_make -e "$PL_MAIL" -c gpl -s -n -f gosa-plugin-${PL_NAME}-${PL_VERSION}.tar.gz &> /dev/null
# Adapt control
sed -i 's/^Section: unknown/Section: web/g' debian/control
+sed -i 's/^Architecture: any/Architecture: all/g' debian/control
sed -i 's/^Depends: .*$/Depends: gosa/g' debian/control
sed -i "s/^Description: .*$/Description: $PL_NAME plugin for GOsa/g" debian/control
sed -i "s/^ <.*$/ $PL_DESCRIPTION\
EOF
# Fix rules
-sed -i "/MAKE/d" debian/rules
-sed -i "s/#.*dh_install$/\tdh_install/" debian/rules
+cat <<EOF > debian/rules
+#!/usr/bin/make -f
+# -*- makefile -*-
+# GOsa default plugin debhelper file.
+# This file was originally written by Joey Hess and Craig Small.
+# As a special exception, when this file is copied by dh-make into a
+# dh-make output file, you may use that output file without restriction.
+# This special exception was added by Craig Small in version 0.37 of dh-make.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+configure: configure-stamp
+configure-stamp:
+ dh_testdir
+ touch configure-stamp
+
+
+build: build-stamp
+
+build-stamp: configure-stamp
+ dh_testdir
+
+ touch $@
+
+clean:
+ dh_testdir
+ dh_testroot
+ rm -f build-stamp configure-stamp
+ dh_clean
+
+install: build
+ dh_testdir
+ dh_testroot
+ dh_clean -k
+ dh_installdirs
+
+# Build architecture-independent files here.
+binary-indep: build install
+ dh_testdir
+ dh_testroot
+ dh_installchangelogs
+ dh_installdocs
+ dh_installexamples
+ dh_install
+ dh_installman
+ dh_link
+ dh_strip
+ dh_compress
+ dh_fixperms
+ dh_installdeb
+ dh_shlibdeps
+ dh_gencontrol
+ dh_md5sums
+ dh_builddeb
+
+binary: binary-indep
+.PHONY: build clean binary-indep binary install configure
+EOF
# Adapt postinst/postrm
for file in postinst postrm; do
popd &> /dev/null
echo "Done."
+