diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 09:55:51 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 09:55:51 +0000 |
commit | 0ae57c13c2b61646cc70617eb118ccb3fc19e995 (patch) | |
tree | 3760e33eb72a4955ffa88d9cfa60579bab714dd6 /debian/rules | |
parent | Adding upstream version 3.6.12. (diff) | |
download | gitolite3-0ae57c13c2b61646cc70617eb118ccb3fc19e995.tar.xz gitolite3-0ae57c13c2b61646cc70617eb118ccb3fc19e995.zip |
Adding debian version 3.6.12-1.debian/3.6.12-1debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/rules')
-rwxr-xr-x | debian/rules | 95 |
1 files changed, 95 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..4d98df8 --- /dev/null +++ b/debian/rules @@ -0,0 +1,95 @@ +#!/usr/bin/make -f +# debian/rules for gitolite package +# Copyright 2010-2011 by Gerfried Fuchs <rhonda@debian.org> +# Licenced under WTFPLv2 + +PKG = gitolite3 +TMP = $(CURDIR)/debian/$(PKG) + +INSTALL = install +INSTALL_FILE = $(INSTALL) -p -oroot -groot -m644 +INSTALL_PROGRAM = $(INSTALL) -p -oroot -groot -m755 +INSTALL_SCRIPT = $(INSTALL) -p -oroot -groot -m755 +INSTALL_DIR = $(INSTALL) -p -d -oroot -groot -m755 + +GL_VERSION = $(shell dpkg-parsechangelog | sed -n -e 's/^Version: \(.*\)/\1 (Debian)/p') + +clean: + $(checkdir) + $(checkroot) + + -rm -rf $(TMP) debian/files + +build: build-arch build-indep +build-arch: +build-indep: + # uhm, build for a binary-indep package? Don't try to be funny ;) + +debian/gitolite.1: debian/gitolite-man.pod + pod2man --center='User Commands' --release="$(GL_VERSION)" $< > $@ + +install: debian/gitolite.1 + $(checkdir) + $(checkroot) + + -rm -rf $(TMP) + $(INSTALL_DIR) $(TMP) + + cd $(TMP) && $(INSTALL_DIR) usr/share/$(PKG) \ + etc/$(PKG) \ + usr/bin \ + usr/share/man/man1 \ + $(TMP)/usr/share/doc/$(PKG) + + for subdir in lib syntactic-sugar; do \ + cp -a src/$${subdir} $(TMP)/usr/share/$(PKG); \ + find $(TMP)/usr/share/$(PKG)/$${subdir} -type f -exec chmod -x {} \; ; \ + done + + for subdir in commands triggers VREF; do \ + cp -a src/$${subdir} $(TMP)/usr/share/$(PKG); \ + find $(TMP)/usr/share/$(PKG)/$${subdir} -type f -exec chmod +x {} \; ; \ + done + + $(INSTALL_SCRIPT) src/gitolite $(TMP)/usr/bin + $(INSTALL_SCRIPT) src/gitolite-shell $(TMP)/usr/share/$(PKG) + $(INSTALL_SCRIPT) check-g2-compat $(TMP)/usr/share/$(PKG) + $(INSTALL_SCRIPT) convert-gitosis-conf $(TMP)/usr/share/$(PKG) + + $(INSTALL_FILE) debian/gitolite.1 $(TMP)/usr/share/man/man1 + gzip -9n $(TMP)/usr/share/man/man1/gitolite.1 + + printf "%s\n" "$(GL_VERSION)" > $(TMP)/usr/share/$(PKG)/VERSION + + $(INSTALL_FILE) README.markdown $(TMP)/usr/share/doc/$(PKG) + + dh_installdocs + dh_installchangelogs + dh_installdebconf + +binary-indep: install + dh_testdir + dh_testroot + dh_installdeb + dh_compress + dh_gencontrol + dh_md5sums + dh_fixperms + dh_builddeb + +binary-arch: + # We have nothing to do here. + + +binary: binary-indep + + +define checkdir + test -f debian/rules +endef + +define checkroot + test root = "`whoami`" +endef + +.PHONY: build clean binary-indep binary-arch binary install |