From: Dragan Dosen Date: Thu, 28 Apr 2011 21:19:13 +0000 (+0200) Subject: Inicijalna inacica paketa. X-Git-Tag: v3.1.3p1+2~1 X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=commitdiff_plain;h=910184a123fb194605d206706c7e70cb7a6c4454;p=php-apc-cn.git Inicijalna inacica paketa. --- 910184a123fb194605d206706c7e70cb7a6c4454 diff --git a/README.CARNet b/README.CARNet new file mode 100644 index 0000000..7fb92a5 --- /dev/null +++ b/README.CARNet @@ -0,0 +1,8 @@ +php-apc-cn +~~~~~~~~~~ + +Ovaj paket je trenutno dummy, no u doglednoj buducnosti ce donositi +postavke potrebne za normalno funkcioniranje pojedinih CARNet paketa. + + + -- Dragan Dosen Thu, 28 Apr 2011 23:07:15 +0200 diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..55282f1 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +php-apc-cn (3.1.3p1+1) stable; urgency=low + + * Inicijalna inacica paketa. + + -- Dragan Dosen Thu, 28 Apr 2011 23:07:15 +0200 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..7f8f011 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +7 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..11c2ad3 --- /dev/null +++ b/debian/control @@ -0,0 +1,20 @@ +Source: php-apc-cn +Section: php +Priority: optional +Maintainer: Dragan Dosen +Build-Depends: debhelper (>= 7) +Standards-Version: 3.9.1 + +Package: php-apc-cn +Architecture: all +Depends: php-apc (>= 3.1.3p1-2), ${misc:Depends} +Description: APC (Alternative PHP Cache) module for PHP 5 + Alternative PHP Cache + . + The Alternative PHP Cache, also known as APC, is a free, open, and robust + framework for caching and optimizing PHP intermediate code. APC is a fast + solution for caching PHP code locally, it is not distributed like MemcacheD, + but they can be used together for optimal caching. + . + This package brings CARNet-related configuration. +Homepage: http://pecl.php.net/package/APC diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..5350ae7 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,7 @@ +Copyright 2011 CARNet + +You are free to distribute this software package under the terms of the +GNU General Public License. + +On Debian systems, the complete text of the GNU General Public +License can be found in the file /usr/share/common-licenses/GPL. diff --git a/debian/docs b/debian/docs new file mode 100644 index 0000000..8f6e250 --- /dev/null +++ b/debian/docs @@ -0,0 +1 @@ +README.CARNet diff --git a/debian/lintian-overrides b/debian/lintian-overrides new file mode 100644 index 0000000..5dc1352 --- /dev/null +++ b/debian/lintian-overrides @@ -0,0 +1 @@ +php-apc-cn: possibly-insecure-handling-of-tmp-files-in-maintainer-script diff --git a/debian/postinst b/debian/postinst new file mode 100755 index 0000000..934e3f7 --- /dev/null +++ b/debian/postinst @@ -0,0 +1,66 @@ +#!/bin/sh +# postinst script for proftpd-cn +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package +# + +case "$1" in + configure|reconfigure) + # continue below + ;; + + *) + exit 0 + ;; +esac + +# Import CN toolsa +. /usr/share/carnet-tools/functions.sh + +CONF=/etc/php5/conf.d/apc.ini + +if [ -e "$CONF" ]; then + echo "CN: Enabling APC tuneups" + cp -a "$CONF" "$CONF.$$" + cp-update --comment ';' php-apc-cn "$CONF.$$" </dev/null; then + echo "CN: Reloading Apache..." + invoke-rc.d apache2 force-reload || true +else + echo "CN: Your Apache2 configuration is either broken or nonexistant" +fi + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 diff --git a/debian/postrm b/debian/postrm new file mode 100755 index 0000000..ef469c7 --- /dev/null +++ b/debian/postrm @@ -0,0 +1,52 @@ +#!/bin/sh +# postrm script for monit-cn +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `remove' +# * `purge' +# * `upgrade' +# * `failed-upgrade' +# * `abort-install' +# * `abort-install' +# * `abort-upgrade' +# * `disappear' overwrit>r> +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + +case "$1" in + purge) + # continue below + ;; + + *) + exit 0 + ;; +esac + +# import CN-functions +. /usr/share/carnet-tools/functions.sh + +CONF=/etc/php5/conf.d/apc.ini + +# remove us from inittab +echo "CN: Removing APC tuneups" +cp-update --comment ';' -r php-apc-cn "$CONF" + +# reload Apache +if apache2ctl configtest 2>/dev/null; then + echo "CN: Reloading Apache..." + invoke-rc.d apache2 force-reload || true +else + echo "CN: Your Apache2 configuration is either broken or nonexistant" +fi + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..cbe925d --- /dev/null +++ b/debian/rules @@ -0,0 +1,3 @@ +#!/usr/bin/make -f +%: + dh $@