diff options
author | Julian Blake Kongslie <jblake@omgwallhack.org> | 2010-11-07 00:09:53 -0700 |
---|---|---|
committer | Julian Blake Kongslie <jblake@omgwallhack.org> | 2010-11-07 00:09:53 -0700 |
commit | 82f9c9f1fa19c59e296570412656c66607d46f48 (patch) | |
tree | 37ddd246883521548513faebd94688b0db70e24c /pinyconfigs/debian | |
parent | 94fc7a992c7f3e163b491ce8b248f3c1b4ca2702 (diff) | |
download | piny-code-82f9c9f1fa19c59e296570412656c66607d46f48.tar.gz piny-code-82f9c9f1fa19c59e296570412656c66607d46f48.zip |
pinyconfigs
Adding a package that does all the config file magic to get a piny instance running.
Signed-off-by: Julian Blake Kongslie <jblake@omgwallhack.org>
Diffstat (limited to 'pinyconfigs/debian')
-rw-r--r-- | pinyconfigs/debian/changelog | 5 | ||||
-rw-r--r-- | pinyconfigs/debian/compat | 1 | ||||
-rw-r--r-- | pinyconfigs/debian/control | 16 | ||||
-rw-r--r-- | pinyconfigs/debian/copyright | 3 | ||||
-rwxr-xr-x | pinyconfigs/debian/pinyconfigs.postinst | 19 | ||||
-rwxr-xr-x | pinyconfigs/debian/pinyconfigs.postrm | 34 | ||||
-rwxr-xr-x | pinyconfigs/debian/pinyconfigs.preinst | 18 | ||||
-rwxr-xr-x | pinyconfigs/debian/pinyconfigs.prerm | 14 | ||||
-rwxr-xr-x | pinyconfigs/debian/rules | 4 | ||||
-rw-r--r-- | pinyconfigs/debian/source/format | 1 |
10 files changed, 115 insertions, 0 deletions
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 <jblake@omgwallhack.org> 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 <jblake@omgwallhack.org> +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 <jrayhawk@omgwallhack.org> +Copyright © 2010 Julian Blake Kongslie <jblake@omgwallhack.org> +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) |