aboutsummaryrefslogtreecommitdiffstats
path: root/extra/pingu
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2009-02-25 16:00:27 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2009-02-25 16:00:27 +0000
commitad0c0a96a4d9366101a696ff3f3c3fe2d4bad740 (patch)
tree3fbd376e353b020f2390ac35359e9b1b140ca493 /extra/pingu
parent97f453105e03015025eb8da31b836b9eb874a1f2 (diff)
downloadaports-ad0c0a96a4d9366101a696ff3f3c3fe2d4bad740.tar.bz2
aports-ad0c0a96a4d9366101a696ff3f3c3fe2d4bad740.tar.xz
extra/pingu: added missing init.d and install file
sorry...
Diffstat (limited to 'extra/pingu')
-rw-r--r--extra/pingu/pingu.initd27
-rw-r--r--extra/pingu/pingu.install30
2 files changed, 57 insertions, 0 deletions
diff --git a/extra/pingu/pingu.initd b/extra/pingu/pingu.initd
new file mode 100644
index 0000000000..7da89c1e0f
--- /dev/null
+++ b/extra/pingu/pingu.initd
@@ -0,0 +1,27 @@
+#!/sbin/runscript
+
+# Sample init.d file for alpine linux.
+
+NAME=pingu
+DAEMON=/usr/sbin/$NAME
+
+depend() {
+ need net
+}
+
+start() {
+ ebegin "Starting ${NAME}"
+ start-stop-daemon --start --quiet \
+ --pidfile /var/run/${NAME}.pid \
+ --exec ${DAEMON} --
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping ${NAME}"
+ start-stop-daemon --stop --quiet \
+ --exec ${DAEMON} \
+ --pidfile /var/run/${NAME}.pid
+ eend $?
+}
+
diff --git a/extra/pingu/pingu.install b/extra/pingu/pingu.install
new file mode 100644
index 0000000000..a05d28b400
--- /dev/null
+++ b/extra/pingu/pingu.install
@@ -0,0 +1,30 @@
+#!/bin/sh
+
+case "$1" in
+ pre_install)
+ # add something which happends before install
+ # $2 contains package version
+ ;;
+ post_install)
+ # add something which happends after install
+ # $2 contains package version
+ ;;
+ pre_upgrade)
+ # add something which happends before update
+ # $2 contains new package version
+ # $3 contains old package version
+ ;;
+ post_upgrade)
+ # add something which happends after update
+ # $2 contains new package version
+ # $3 contains old package version
+ ;;
+ pre_deinstall)
+ # add something which happends before delete
+ # $2 contains package version
+ ;;
+ post_deinstall)
+ # add something which happends after delete
+ # $2 contains package version
+ ;;
+esac