diff options
author | B Stack <bgstack15@gmail.com> | 2020-03-11 17:53:18 -0400 |
---|---|---|
committer | B Stack <bgstack15@gmail.com> | 2020-03-11 17:53:18 -0400 |
commit | 61bb7a27543b9caa57e9cf39d9d10131d5af674d (patch) | |
tree | 56623c8a211677ae53cdfc2b2d365af5f20714aa | |
parent | initial commit (diff) | |
download | freeipa-helper-61bb7a27543b9caa57e9cf39d9d10131d5af674d.tar.gz freeipa-helper-61bb7a27543b9caa57e9cf39d9d10131d5af674d.tar.bz2 freeipa-helper-61bb7a27543b9caa57e9cf39d9d10131d5af674d.zip |
add debian/
added the deplist feature to Makefile to support debuild
-rw-r--r-- | .gitignore | 8 | ||||
-rw-r--r-- | debian/README.Debian | 5 | ||||
-rw-r--r-- | debian/changelog | 5 | ||||
-rw-r--r-- | debian/compat | 1 | ||||
-rw-r--r-- | debian/control | 19 | ||||
-rw-r--r-- | debian/copyright | 17 | ||||
-rw-r--r-- | debian/freeipa-helper.docs | 1 | ||||
-rw-r--r-- | debian/freeipa-helper.links | 3 | ||||
-rw-r--r-- | debian/freeipa-helper.lintian-overrides | 3 | ||||
-rw-r--r-- | debian/freeipa-helper_devuan.dsc | 14 | ||||
-rw-r--r-- | debian/patches/series | 1 | ||||
-rwxr-xr-x | debian/rules | 18 | ||||
-rw-r--r-- | debian/source/format | 1 | ||||
-rw-r--r-- | debian/source/lintian-overrides | 2 | ||||
-rw-r--r-- | debian/source/local-options | 2 | ||||
-rw-r--r-- | debian/watch | 2 | ||||
-rw-r--r-- | src/Makefile | 12 |
17 files changed, 113 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..dff6afe --- /dev/null +++ b/.gitignore @@ -0,0 +1,8 @@ +*.2019-* +*.swp +__pycache__ +*debhelper* +debian/freeipa-helper/ +debian/files +*.substvars +gitmessage diff --git a/debian/README.Debian b/debian/README.Debian new file mode 100644 index 0000000..a6674ab --- /dev/null +++ b/debian/README.Debian @@ -0,0 +1,5 @@ +freeipa-helper for Devuan + +The dpkg handles its own symlink work. + + -- Ben Stack <bgstack15@gmail.com> Wed, 11 Mar 2020 17:27:23 -0400 diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..54d2d86 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +freeipa-helper (0.0.1-1+devuan) obs; urgency=low + + * Initial release. + + -- Ben Stack <bgstack15@gmail.com> Wed, 11 Mar 2020 17:27:23 -0400 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..48082f7 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +12 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..febc104 --- /dev/null +++ b/debian/control @@ -0,0 +1,19 @@ +Source: freeipa-helper +Section: net +Priority: optional +Maintainer: Ben Stack <bgstack15@gmail.com> +Build-Depends: debhelper (>=12~) +Standards-Version: 4.1.4 +Homepage: https://gitlab.com/bgstack15/freeipa-helper + +Package: freeipa-helper +Architecture: all +Multi-Arch: foreign +Suggests: oddjob-mkhomedir (=0.0.1-1) +Recommends: freeipa-client +Depends: ${misc:Depends}, ${shlibs:Depends} +Description: makes running ipa-client-install easier + Use this set of scripts as part of your ipa client + installation. Some pretend to be systemctl and + related scripts, and one is a post-install script + for final configuration. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..2ee71d7 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,17 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: freeipa-helper +Source: <url://example.com> +# +# Please double check copyright with the licensecheck(1) command. + +Files: README.md + src/Makefile + src/usr/sbin/freeipa-helper-post-install + src/usr/sbin/systemctl + src/usr/share/doc/freeipa-helper/README.md +Copyright: __NO_COPYRIGHT_NOR_LICENSE__ +License: __NO_COPYRIGHT_NOR_LICENSE__ + +#---------------------------------------------------------------------------- +# Files marked as NO_LICENSE_TEXT_FOUND may be covered by the following +# license/copyright files. diff --git a/debian/freeipa-helper.docs b/debian/freeipa-helper.docs new file mode 100644 index 0000000..9d59981 --- /dev/null +++ b/debian/freeipa-helper.docs @@ -0,0 +1 @@ +src/usr/share/doc/freeipa-helper/* diff --git a/debian/freeipa-helper.links b/debian/freeipa-helper.links new file mode 100644 index 0000000..5c2a7b0 --- /dev/null +++ b/debian/freeipa-helper.links @@ -0,0 +1,3 @@ +/usr/sbin/systemctl /bin/systemctl +/usr/sbin/systemctl /usr/bin/hostnamectl +/usr/sbin/systemctl /usr/bin/systemd-detect-virt diff --git a/debian/freeipa-helper.lintian-overrides b/debian/freeipa-helper.lintian-overrides new file mode 100644 index 0000000..2d52e68 --- /dev/null +++ b/debian/freeipa-helper.lintian-overrides @@ -0,0 +1,3 @@ +binary-without-manpage +copyright-has-url-from-dh_make-boilerplate +copyright-without-copyright-notice diff --git a/debian/freeipa-helper_devuan.dsc b/debian/freeipa-helper_devuan.dsc new file mode 100644 index 0000000..0b8e86b --- /dev/null +++ b/debian/freeipa-helper_devuan.dsc @@ -0,0 +1,14 @@ +Format: 3.0 (quilt) +Source: freeipa-helper +Binary: freeipa-helper +Architecture: all +Version: 0.0.1-1+devuan +Maintainer: Ben Stack <bgstack15@gmail.com> +Homepage: https://gitlab.com/bgstack15/freeipa-helper +Standards-Version: 4.1.4 +Build-Depends: debhelper (>= 12~) +Package-List: + freeipa-helper deb net optional arch=all +Files: + 00000000000000000000000000000000 1 freeipa-helper.orig.tar.gz + 00000000000000000000000000000000 1 freeipa-helper_devuan.debian.tar.xz diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..4a97dfa --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +# You must remove unused comment lines for the released package. diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..8e199c0 --- /dev/null +++ b/debian/rules @@ -0,0 +1,18 @@ +#!/usr/bin/make -f +# You must remove unused comment lines for the released package. +#export DH_VERBOSE = 1 +#export DEB_BUILD_MAINT_OPTIONS = hardening=+all +#export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic +#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed +APPNAME=freeipa-helper + +%: + dh $@ --sourcedirectory=src + +override_dh_auto_install: + dh_auto_install -- prefix=/usr DEFAULTDIR='$$(DESTDIR)/etc/default' + +override_dh_gencontrol: + printf "misc:Depends=" > debian/${APPNAME}.substvars + make -C src deplist DISTRO=devuan SEPARATOR=',' | grep -vE 'make\[[0-9]' >> debian/${APPNAME}.substvars + dh_gencontrol diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/debian/source/lintian-overrides b/debian/source/lintian-overrides new file mode 100644 index 0000000..2da37ed --- /dev/null +++ b/debian/source/lintian-overrides @@ -0,0 +1,2 @@ +file-without-copyright-information +missing-license-paragraph-in-dep5-copyright diff --git a/debian/source/local-options b/debian/source/local-options new file mode 100644 index 0000000..00131ee --- /dev/null +++ b/debian/source/local-options @@ -0,0 +1,2 @@ +#abort-on-upstream-changes +#unapply-patches diff --git a/debian/watch b/debian/watch new file mode 100644 index 0000000..fc70498 --- /dev/null +++ b/debian/watch @@ -0,0 +1,2 @@ +# You must remove unused comment lines for the released package. +version=4 diff --git a/src/Makefile b/src/Makefile index 44bdc0d..c48eefa 100644 --- a/src/Makefile +++ b/src/Makefile @@ -35,15 +35,25 @@ sedbin :=$(shell which sed) sortbin :=$(shell which sort) truebin :=$(shell which true) lnbin :=$(shell which ln) +xargsbin :=$(shell which xargs) +uniqbin :=$(shell which uniq) all: ${echobin} "No compilation in this package." -.PHONY: clean install uninstall list +.PHONY: clean install uninstall list deplist deplist_opts list: @$(MAKE) -pRrq -f $(lastword $(MAKEFILE_LIST)) : 2>/dev/null | ${awkbin} -v RS= -F: '/^# File/,/^# Finished Make data base/ {if ($$1 !~ "^[#.]") {print $$1}}' | ${sortbin} | ${grepbin} -E -v -e '^[^[:alnum:]]' -e '^$@$$' +deplist: + @if test -z "$(DISTRO)" ; then ${echobin} "Please run \`make deplist\` with DISTRO= one of: `make deplist_opts 2>&1 1>/dev/null | ${xargsbin}`. Aborted." ; exit 1 ; fi + @${grepbin} -h --exclude='Makefile' --exclude-dir='doc' -A5 -riIE dependencies $(SRCDIR) | ${awkbin} -v 'distro=$(DISTRO)' 'tolower($$0) ~ distro {$$1="";$$2="";print}' | ${awkbin} 'BEGIN{cmd="${xargsbin} -n1"} $$0 !~ /\(/{print $$0 | cmd ; close(cmd);} $$0 ~ /\(/{print;}' | ${sortbin} | ${uniqbin} | ${sedbin} -r -e 's/$$/$(SEPARATOR)/' | ${xargsbin} + +deplist_opts: + @${echobin} "el7" 1>&2 + @${echobin} "devuan" 1>&2 + install: @${echobin} Installing files to ${DESTDIR} ${installbin} -d ${SBINDIR} ${DOCDIR} ${BINDIR} ${BINDIR1} |