From 11394aecd1f906fee2ebd2b90412aeba4651fbff Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Wed, 3 Apr 2019 22:56:40 +0900 Subject: DEB: use _base folder for a distro instead of specific distros (squeeze and maverick). Signed-off-by: Michele Calgaro --- .../metapackages/sudo-trinity/debian/changelog | 5 ++++ .../_base/metapackages/sudo-trinity/debian/compat | 1 + .../_base/metapackages/sudo-trinity/debian/control | 15 ++++++++++++ ubuntu/_base/metapackages/sudo-trinity/debian/dirs | 1 + .../sudo-trinity/debian/distrospecific/Makefile | 12 ++++++++++ .../distrospecific/etc/sudoers.d/tde-secure-path | 1 + .../_base/metapackages/sudo-trinity/debian/rules | 27 ++++++++++++++++++++++ .../metapackages/sudo-trinity/debian/source/format | 1 + .../sudo-trinity/debian/source/options | 6 +++++ 9 files changed, 69 insertions(+) create mode 100644 ubuntu/_base/metapackages/sudo-trinity/debian/changelog create mode 100644 ubuntu/_base/metapackages/sudo-trinity/debian/compat create mode 100644 ubuntu/_base/metapackages/sudo-trinity/debian/control create mode 100644 ubuntu/_base/metapackages/sudo-trinity/debian/dirs create mode 100644 ubuntu/_base/metapackages/sudo-trinity/debian/distrospecific/Makefile create mode 100644 ubuntu/_base/metapackages/sudo-trinity/debian/distrospecific/etc/sudoers.d/tde-secure-path create mode 100755 ubuntu/_base/metapackages/sudo-trinity/debian/rules create mode 100644 ubuntu/_base/metapackages/sudo-trinity/debian/source/format create mode 100644 ubuntu/_base/metapackages/sudo-trinity/debian/source/options (limited to 'ubuntu/_base/metapackages/sudo-trinity') diff --git a/ubuntu/_base/metapackages/sudo-trinity/debian/changelog b/ubuntu/_base/metapackages/sudo-trinity/debian/changelog new file mode 100644 index 000000000..6d79a642a --- /dev/null +++ b/ubuntu/_base/metapackages/sudo-trinity/debian/changelog @@ -0,0 +1,5 @@ +sudo-trinity (1.0) lucid; urgency=low + + * Initial release + + -- Timothy Pearson Sun, 11 Dec 2011 07:49:00 -0600 diff --git a/ubuntu/_base/metapackages/sudo-trinity/debian/compat b/ubuntu/_base/metapackages/sudo-trinity/debian/compat new file mode 100644 index 000000000..7f8f011eb --- /dev/null +++ b/ubuntu/_base/metapackages/sudo-trinity/debian/compat @@ -0,0 +1 @@ +7 diff --git a/ubuntu/_base/metapackages/sudo-trinity/debian/control b/ubuntu/_base/metapackages/sudo-trinity/debian/control new file mode 100644 index 000000000..bff80374f --- /dev/null +++ b/ubuntu/_base/metapackages/sudo-trinity/debian/control @@ -0,0 +1,15 @@ +Source: sudo-trinity +Section: tde +Priority: extra +Maintainer: Timothy Pearson +Uploaders: Timothy Pearson +Build-Depends: debhelper (>= 7.0.50~), cdbs +Standards-Version: 3.8.4 + +Package: sudo-trinity +Architecture: all +Depends: sudo +Replaces: sudo-kde3 (<< 4:14.0.0~), sudo-trinity (<< 4:14.0.0~) +Breaks: sudo-kde3 (<< 4:14.0.0~), sudo-trinity (<< 4:14.0.0~) +Description: TDE sudo + TDE configuration files for sudo diff --git a/ubuntu/_base/metapackages/sudo-trinity/debian/dirs b/ubuntu/_base/metapackages/sudo-trinity/debian/dirs new file mode 100644 index 000000000..ee19d5d17 --- /dev/null +++ b/ubuntu/_base/metapackages/sudo-trinity/debian/dirs @@ -0,0 +1 @@ +etc diff --git a/ubuntu/_base/metapackages/sudo-trinity/debian/distrospecific/Makefile b/ubuntu/_base/metapackages/sudo-trinity/debian/distrospecific/Makefile new file mode 100644 index 000000000..f106ff05e --- /dev/null +++ b/ubuntu/_base/metapackages/sudo-trinity/debian/distrospecific/Makefile @@ -0,0 +1,12 @@ +FPACKAGE = sudo-trinity +VERSION = 1.0 + +build: + +clean: + +install: + mkdir -p /etc + cp -Rp etc/* $(DESTDIR)/etc/ + chmod -R 644 $(DESTDIR)/etc + chmod -R 0440 $(DESTDIR)/etc/sudoers.d/tde-secure-path diff --git a/ubuntu/_base/metapackages/sudo-trinity/debian/distrospecific/etc/sudoers.d/tde-secure-path b/ubuntu/_base/metapackages/sudo-trinity/debian/distrospecific/etc/sudoers.d/tde-secure-path new file mode 100644 index 000000000..f3c34f20a --- /dev/null +++ b/ubuntu/_base/metapackages/sudo-trinity/debian/distrospecific/etc/sudoers.d/tde-secure-path @@ -0,0 +1 @@ +Defaults secure_path=/usr/local/sbin:/usr/local/bin:/opt/trinity/sbin:/usr/sbin:/opt/trinity/bin:/usr/bin:/sbin:/bin:/usr/X11R6/bin diff --git a/ubuntu/_base/metapackages/sudo-trinity/debian/rules b/ubuntu/_base/metapackages/sudo-trinity/debian/rules new file mode 100755 index 000000000..e5e2870b7 --- /dev/null +++ b/ubuntu/_base/metapackages/sudo-trinity/debian/rules @@ -0,0 +1,27 @@ +#!/usr/bin/make -f +include /usr/share/cdbs/1/class/makefile.mk +include /usr/share/cdbs/1/rules/debhelper.mk + +CFLAGS=-g -Wall -fPIC + +DEB_MAKE_INSTALL_TARGET := install DESTDIR="$(DEB_DESTDIR)" +DEB_INSTALL_DOCS_ALL := + +DEB_DH_BUILDDEB_ARGS += -- -Z$(shell dpkg-deb --help | grep -q ":.* xz[,.]" \ + && echo xz || echo bzip2) + +pre-build:: debian/stamp-distrospecific + +debian/stamp-distrospecific: + dh_testdir + [ -e debian/stamp-distrospecific ] || \ + ls -a1 debian/distrospecific | grep -v "^\.*$$" | \ + tee debian/stamp-distrospecific | \ + tr "\n" "\0" | (cd debian/distrospecific && xargs -r0 mv -t ../..) + +clean:: + dh_testdir + [ ! -e debian/stamp-distrospecific ] || \ + cat debian/stamp-distrospecific | \ + tr "\n" "\0" | xargs -r0 mv -t debian/distrospecific + rm -f debian/stamp-distrospecific diff --git a/ubuntu/_base/metapackages/sudo-trinity/debian/source/format b/ubuntu/_base/metapackages/sudo-trinity/debian/source/format new file mode 100644 index 000000000..163aaf8d8 --- /dev/null +++ b/ubuntu/_base/metapackages/sudo-trinity/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/ubuntu/_base/metapackages/sudo-trinity/debian/source/options b/ubuntu/_base/metapackages/sudo-trinity/debian/source/options new file mode 100644 index 000000000..72f1f5450 --- /dev/null +++ b/ubuntu/_base/metapackages/sudo-trinity/debian/source/options @@ -0,0 +1,6 @@ +# Use xz instead of gzip +compression = "xz" +compression-level = 9 + +# Don't run differences +diff-ignore = .* -- cgit v1.2.1