summaryrefslogtreecommitdiffstats
path: root/ubuntu/_base/metapackages/ubiquity-trinity/debian
diff options
context:
space:
mode:
Diffstat (limited to 'ubuntu/_base/metapackages/ubiquity-trinity/debian')
-rw-r--r--ubuntu/_base/metapackages/ubiquity-trinity/debian/changelog6
-rw-r--r--ubuntu/_base/metapackages/ubiquity-trinity/debian/compat1
-rw-r--r--ubuntu/_base/metapackages/ubiquity-trinity/debian/control11
-rw-r--r--ubuntu/_base/metapackages/ubiquity-trinity/debian/copyright23
-rwxr-xr-xubuntu/_base/metapackages/ubiquity-trinity/debian/distrospecific/ubiquity-hooks/55_trinity52
-rw-r--r--ubuntu/_base/metapackages/ubiquity-trinity/debian/install1
-rwxr-xr-xubuntu/_base/metapackages/ubiquity-trinity/debian/rules22
-rw-r--r--ubuntu/_base/metapackages/ubiquity-trinity/debian/source/format1
-rw-r--r--ubuntu/_base/metapackages/ubiquity-trinity/debian/source/options3
9 files changed, 120 insertions, 0 deletions
diff --git a/ubuntu/_base/metapackages/ubiquity-trinity/debian/changelog b/ubuntu/_base/metapackages/ubiquity-trinity/debian/changelog
new file mode 100644
index 000000000..2b5f57a68
--- /dev/null
+++ b/ubuntu/_base/metapackages/ubiquity-trinity/debian/changelog
@@ -0,0 +1,6 @@
+ubiquity-trinity (4:3.5.13-1ubuntu0+ax0) precise; urgency=low
+
+ * Initial version
+
+ -- Slávek Banko <slavek.banko@axis.cz> Wed, 19 Dec 2012 18:54:50 +0100
+
diff --git a/ubuntu/_base/metapackages/ubiquity-trinity/debian/compat b/ubuntu/_base/metapackages/ubiquity-trinity/debian/compat
new file mode 100644
index 000000000..7f8f011eb
--- /dev/null
+++ b/ubuntu/_base/metapackages/ubiquity-trinity/debian/compat
@@ -0,0 +1 @@
+7
diff --git a/ubuntu/_base/metapackages/ubiquity-trinity/debian/control b/ubuntu/_base/metapackages/ubiquity-trinity/debian/control
new file mode 100644
index 000000000..3edef9d2b
--- /dev/null
+++ b/ubuntu/_base/metapackages/ubiquity-trinity/debian/control
@@ -0,0 +1,11 @@
+Source: ubiquity-trinity
+Section: admin
+Priority: optional
+Maintainer: Timothy Pearson <kb9vqf@pearsoncomputing.net>
+Build-Depends: cdbs, debhelper (>= 7.0.50~)
+Standards-Version: 3.8.4
+
+Package: ubiquity-trinity
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}, ubiquity-frontend-gtk | ubiquity
+Description: Ubiquity addon scripts for Trinity
diff --git a/ubuntu/_base/metapackages/ubiquity-trinity/debian/copyright b/ubuntu/_base/metapackages/ubiquity-trinity/debian/copyright
new file mode 100644
index 000000000..a866ee13d
--- /dev/null
+++ b/ubuntu/_base/metapackages/ubiquity-trinity/debian/copyright
@@ -0,0 +1,23 @@
+Author: Slávek Banko <slavek.banko@axis.cz>
+
+License:
+
+ This package is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This package is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this package; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+
+On Debian systems, the complete text of the GNU General
+Public License can be found in `/usr/share/common-licenses/GPL'.
+
+The Debian packaging is (C) 2010, Slávek Banko <slavek.banko@axis.cz> and
+is licensed under the GPL, see above.
diff --git a/ubuntu/_base/metapackages/ubiquity-trinity/debian/distrospecific/ubiquity-hooks/55_trinity b/ubuntu/_base/metapackages/ubiquity-trinity/debian/distrospecific/ubiquity-hooks/55_trinity
new file mode 100755
index 000000000..e31165c02
--- /dev/null
+++ b/ubuntu/_base/metapackages/ubiquity-trinity/debian/distrospecific/ubiquity-hooks/55_trinity
@@ -0,0 +1,52 @@
+#! /bin/sh
+set -e
+
+#-- configure autologin
+. /usr/share/debconf/confmodule
+
+export LANG=C # avoid locale errors from perl
+ROOT=/target
+chroot=chroot
+log='log-output -t trinity-livecd'
+
+db_get passwd/username
+USER="$RET"
+db_get passwd/auto-login
+if [ -n "$USER" ] && [ "$RET" = true ]; then
+ if $chroot $ROOT [ -f /etc/trinity/kdm/kdmrc ]; then
+ # Configure KDM autologin
+ $log $chroot $ROOT sed -i$BACKUP -r \
+ -e "s/^#?AutoLoginEnable=.*\$/AutoLoginEnable=true/" \
+ -e "s/^#?AutoLoginUser=.*\$/AutoLoginUser=$USER/" \
+ -e "s/^#?AutoLoginAgain=.*\$/AutoLoginAgain=true/" \
+ /etc/trinity/kdm/kdmrc
+ fi
+
+ if $chroot $ROOT [ -f /etc/trinity/tdm/tdmrc ]; then
+ # Configure TDM autologin
+ $log $chroot $ROOT sed -i$BACKUP -r \
+ -e "s/^#?AutoLoginEnable=.*\$/AutoLoginEnable=true/" \
+ -e "s/^#?AutoLoginUser=.*\$/AutoLoginUser=$USER/" \
+ -e "s/^#?AutoLoginAgain=.*\$/AutoLoginAgain=true/" \
+ /etc/trinity/tdm/tdmrc
+ fi
+fi
+
+#-- cleanup additional packages
+packages=""
+if [ -f "$ROOT/var/lib/dpkg/info/casper-trinity.list" ]; then
+ packages="$packages casper-trinity"
+fi
+if [ -f "$ROOT/var/lib/dpkg/info/ubiquity-trinity.list" ]; then
+ packages="$packages ubiquity-trinity"
+fi
+if [ -n "$packages" ]; then
+ if [ -f "$ROOT/usr/bin/apt-get" ]; then
+ $chroot $ROOT apt-get -y purge $packages
+ $chroot $ROOT apt-get -y --purge autoremove
+ else
+ $chroot $ROOT dpkg -P $packages
+ fi
+fi
+
+exit 0
diff --git a/ubuntu/_base/metapackages/ubiquity-trinity/debian/install b/ubuntu/_base/metapackages/ubiquity-trinity/debian/install
new file mode 100644
index 000000000..2f8bf51a5
--- /dev/null
+++ b/ubuntu/_base/metapackages/ubiquity-trinity/debian/install
@@ -0,0 +1 @@
+ubiquity-hooks/* usr/lib/ubiquity/target-config
diff --git a/ubuntu/_base/metapackages/ubiquity-trinity/debian/rules b/ubuntu/_base/metapackages/ubiquity-trinity/debian/rules
new file mode 100755
index 000000000..e6b6748ab
--- /dev/null
+++ b/ubuntu/_base/metapackages/ubiquity-trinity/debian/rules
@@ -0,0 +1,22 @@
+#! /usr/bin/make -f
+
+include /usr/share/cdbs/1/rules/debhelper.mk
+
+DEB_DH_BUILDDEB_ARGS += -- -Z$(shell dpkg-deb --help | grep -q ":.* xz[,.]" \
+ && echo xz || echo bzip2)
+
+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/ubiquity-trinity/debian/source/format b/ubuntu/_base/metapackages/ubiquity-trinity/debian/source/format
new file mode 100644
index 000000000..163aaf8d8
--- /dev/null
+++ b/ubuntu/_base/metapackages/ubiquity-trinity/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/ubuntu/_base/metapackages/ubiquity-trinity/debian/source/options b/ubuntu/_base/metapackages/ubiquity-trinity/debian/source/options
new file mode 100644
index 000000000..d71748bba
--- /dev/null
+++ b/ubuntu/_base/metapackages/ubiquity-trinity/debian/source/options
@@ -0,0 +1,3 @@
+# Use xz instead of gzip
+compression = "xz"
+compression-level = 9