diff options
author | B Stack <bgstack15@gmail.com> | 2020-03-24 12:15:37 +0000 |
---|---|---|
committer | B Stack <bgstack15@gmail.com> | 2020-03-24 12:15:37 +0000 |
commit | c4de32cb5959072aadf46686e311f4d0a974dc13 (patch) | |
tree | bf30a9449a3ee3afbc6fc46c860591a64907ac8d /debian | |
parent | add debian/ (diff) | |
parent | fix sssd.conf and improve packaging (diff) | |
download | freeipa-helper-master.tar.gz freeipa-helper-master.tar.bz2 freeipa-helper-master.zip |
fix sssd.conf and improve packaging
Closes #1
See merge request bgstack15/freeipa-helper!1
Diffstat (limited to 'debian')
-rw-r--r-- | debian/changelog | 8 | ||||
-rw-r--r-- | debian/dev | 0 | ||||
-rw-r--r-- | debian/freeipa-helper+devuan.dsc (renamed from debian/freeipa-helper_devuan.dsc) | 4 | ||||
-rwxr-xr-x | debian/make-dsc-for-obs.sh | 10 | ||||
-rwxr-xr-x | debian/rules | 6 |
5 files changed, 25 insertions, 3 deletions
diff --git a/debian/changelog b/debian/changelog index 54d2d86..e845b95 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,11 @@ +freeipa-helper (0.0.2-1+devuan) obs; urgency=medium + + * Fix post-install needs to chmod 0600 sssd.conf + [#1](https://gitlab.com/bgstack15/freeipa-helper/-/issues/1) + * Add sssd.conf template + + -- Ben Stack <bgstack15@gmail.com> Mon, 23 Mar 2020 16:25:09 -0400 + freeipa-helper (0.0.1-1+devuan) obs; urgency=low * Initial release. diff --git a/debian/dev b/debian/dev new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/debian/dev diff --git a/debian/freeipa-helper_devuan.dsc b/debian/freeipa-helper+devuan.dsc index 0b8e86b..521b32f 100644 --- a/debian/freeipa-helper_devuan.dsc +++ b/debian/freeipa-helper+devuan.dsc @@ -2,7 +2,7 @@ Format: 3.0 (quilt) Source: freeipa-helper Binary: freeipa-helper Architecture: all -Version: 0.0.1-1+devuan +Version: 0.0.2-1+devuan Maintainer: Ben Stack <bgstack15@gmail.com> Homepage: https://gitlab.com/bgstack15/freeipa-helper Standards-Version: 4.1.4 @@ -11,4 +11,4 @@ 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 + 00000000000000000000000000000000 1 freeipa-helper+devuan.debian.tar.xz diff --git a/debian/make-dsc-for-obs.sh b/debian/make-dsc-for-obs.sh new file mode 100755 index 0000000..da1c0b7 --- /dev/null +++ b/debian/make-dsc-for-obs.sh @@ -0,0 +1,10 @@ +#!/bin/sh +# Goal: convert the fresh dsc file to a generic one for obs that omits version and checksum info on filenames +# Use in debian/rules: +# APPNAME=name-of-binary-package +# override_dh_auto_build: +# dh_auto_build +# sh debian/make-dsc-for-obs.sh +tf="../$( find .. -maxdepth 1 -name "${APPNAME}_*dsc" -printf '%T@ %f\n' | sort | tail -n1 | awk '{print $NF}' )" +of="debian/$( basename "$( readlink -f "${tf}" )" | sed -r -e 's/_[0-9_\.]+[0-9_](-[0-9])?//;' )" +awk 'BEGIN{a=0} a > 0 {$2="1";gsub(/_[0-9_\.]+[0-9_](-[0-9])?/,"");} /^Files/{a=1} {print}' "${tf}" | sed -r -e '/Checksums-.{0,8}:\s*$/,/^Files/{/Files/!{d};}' -e '/^Files/,${s/^ ?[^\s]{32}/ 00000000000000000000000000000000/;};' > "${of}" diff --git a/debian/rules b/debian/rules index 8e199c0..9f2ca42 100755 --- a/debian/rules +++ b/debian/rules @@ -4,11 +4,15 @@ #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 +export APPNAME=freeipa-helper %: dh $@ --sourcedirectory=src +override_dh_auto_build: + dh_auto_build + sh debian/make-dsc-for-obs.sh + override_dh_auto_install: dh_auto_install -- prefix=/usr DEFAULTDIR='$$(DESTDIR)/etc/default' |