From 82f9c9f1fa19c59e296570412656c66607d46f48 Mon Sep 17 00:00:00 2001 From: Julian Blake Kongslie Date: Sun, 7 Nov 2010 00:09:53 -0700 Subject: pinyconfigs Adding a package that does all the config file magic to get a piny instance running. Signed-off-by: Julian Blake Kongslie --- pinyconfigs/debian/changelog | 5 +++++ pinyconfigs/debian/compat | 1 + pinyconfigs/debian/control | 16 ++++++++++++++++ pinyconfigs/debian/copyright | 3 +++ pinyconfigs/debian/pinyconfigs.postinst | 19 ++++++++++++++++++ pinyconfigs/debian/pinyconfigs.postrm | 34 +++++++++++++++++++++++++++++++++ pinyconfigs/debian/pinyconfigs.preinst | 18 +++++++++++++++++ pinyconfigs/debian/pinyconfigs.prerm | 14 ++++++++++++++ pinyconfigs/debian/rules | 4 ++++ pinyconfigs/debian/source/format | 1 + 10 files changed, 115 insertions(+) create mode 100644 pinyconfigs/debian/changelog create mode 100644 pinyconfigs/debian/compat create mode 100644 pinyconfigs/debian/control create mode 100644 pinyconfigs/debian/copyright create mode 100755 pinyconfigs/debian/pinyconfigs.postinst create mode 100755 pinyconfigs/debian/pinyconfigs.postrm create mode 100755 pinyconfigs/debian/pinyconfigs.preinst create mode 100755 pinyconfigs/debian/pinyconfigs.prerm create mode 100755 pinyconfigs/debian/rules create mode 100644 pinyconfigs/debian/source/format (limited to 'pinyconfigs/debian') diff --git a/pinyconfigs/debian/changelog b/pinyconfigs/debian/changelog new file mode 100644 index 0000000..e34f3f8 --- /dev/null +++ b/pinyconfigs/debian/changelog @@ -0,0 +1,5 @@ +pinyconfigs (0.1) unstable; urgency=low + + * Initial release. + + -- Julian Blake Kongslie Fri, 05 Nov 2010 11:01:59 -0700 diff --git a/pinyconfigs/debian/compat b/pinyconfigs/debian/compat new file mode 100644 index 0000000..7f8f011 --- /dev/null +++ b/pinyconfigs/debian/compat @@ -0,0 +1 @@ +7 diff --git a/pinyconfigs/debian/control b/pinyconfigs/debian/control new file mode 100644 index 0000000..fe1c839 --- /dev/null +++ b/pinyconfigs/debian/control @@ -0,0 +1,16 @@ +Source: pinyconfigs +Maintainer: Julian Blake Kongslie +Section: admin +Build-depends: debhelper (>= 7) +Priority: extra +Homepage: http://www.piny.be/piny-code/ +Standards-version: 3.8.4 + +Package: pinyconfigs +Architecture: all +Depends: ${misc:Depends} +Description: Configuration files for piny + The configuration files needed for a piny configuration. + . + This package diverts config files from many other packages in order to + configure a system to run a piny instance. diff --git a/pinyconfigs/debian/copyright b/pinyconfigs/debian/copyright new file mode 100644 index 0000000..9d12aab --- /dev/null +++ b/pinyconfigs/debian/copyright @@ -0,0 +1,3 @@ +Copyright © 2010 Joe Rayhawk +Copyright © 2010 Julian Blake Kongslie +Licensed under the BSD 3-clause license. diff --git a/pinyconfigs/debian/pinyconfigs.postinst b/pinyconfigs/debian/pinyconfigs.postinst new file mode 100755 index 0000000..919f205 --- /dev/null +++ b/pinyconfigs/debian/pinyconfigs.postinst @@ -0,0 +1,19 @@ +#!/bin/sh + +set -e + +case "$1" in + + configure) + + if [ "$2" = "" ]; then + # If this is a fresh install, enable the piny site in apache. + a2ensite piny || true + fi + + ;; + + *) + ;; + +esac diff --git a/pinyconfigs/debian/pinyconfigs.postrm b/pinyconfigs/debian/pinyconfigs.postrm new file mode 100755 index 0000000..ac69cc8 --- /dev/null +++ b/pinyconfigs/debian/pinyconfigs.postrm @@ -0,0 +1,34 @@ +#!/bin/sh + +set -e + +case "$1" in + + remove) + + dpkg-divert --divert /etc/apache2/envvars.default --package pinyconfigs --remove /etc/apache2/envvars + dpkg-divert --divert /etc/cgitrc.default --package pinyconfigs --remove /etc/cgitrc + dpkg-divert --divert /etc/sv/git-daemon/run.default --package pinyconfigs --remove /etc/sv/git-daemon/run + + ;; + + purge) + + if [ -e /etc/apache2/envvars.default ]; then + mv /etc/apache2/envvars.default /etc/apache2/envvars + fi + + if [ -e /etc/cgitrc.default ]; then + mv /etc/cgitrc.default /etc/cgitrc + fi + + if [ -e /etc/sv/git-daemon/run.default ]; then + mv /etc/sv/git-daemon/run.default /etc/sv/git-daemon/run + fi + + ;; + + *) + ;; + +esac diff --git a/pinyconfigs/debian/pinyconfigs.preinst b/pinyconfigs/debian/pinyconfigs.preinst new file mode 100755 index 0000000..e09313a --- /dev/null +++ b/pinyconfigs/debian/pinyconfigs.preinst @@ -0,0 +1,18 @@ +#!/bin/sh + +set -e + +case "$1" in + + install) + + dpkg-divert --divert /etc/apache2/envvars.default --package pinyconfigs --rename /etc/apache2/envvars + dpkg-divert --divert /etc/cgitrc.default --package pinyconfigs --rename /etc/cgitrc + dpkg-divert --divert /etc/sv/git-daemon/run.default --package pinyconfigs --rename /etc/sv/git-daemon/run + + ;; + + *) + ;; + +esac diff --git a/pinyconfigs/debian/pinyconfigs.prerm b/pinyconfigs/debian/pinyconfigs.prerm new file mode 100755 index 0000000..2556521 --- /dev/null +++ b/pinyconfigs/debian/pinyconfigs.prerm @@ -0,0 +1,14 @@ +#!/bin/sh + +set -e + +case "$1" in + + remove) + a2dissite piny || true + ;; + + *) + ;; + +esac diff --git a/pinyconfigs/debian/rules b/pinyconfigs/debian/rules new file mode 100755 index 0000000..2d33f6a --- /dev/null +++ b/pinyconfigs/debian/rules @@ -0,0 +1,4 @@ +#!/usr/bin/make -f + +%: + dh $@ diff --git a/pinyconfigs/debian/source/format b/pinyconfigs/debian/source/format new file mode 100644 index 0000000..89ae9db --- /dev/null +++ b/pinyconfigs/debian/source/format @@ -0,0 +1 @@ +3.0 (native) -- cgit v1.2.3