mirror of
https://github.com/php-win-ext/phpredis.git
synced 2026-03-24 00:52:16 +01:00
added a debian/ directory to build phpredis easy with svn-buildpackage/dpkg-buildpackage
This commit is contained in:
11
debian/changelog
vendored
Normal file
11
debian/changelog
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
phpredis (1.0.0-2) unstable; urgency=low
|
||||
|
||||
* Fix some little debian/* problems.
|
||||
|
||||
-- Simon Effenberg <se@plista.com> Thu, 23 Sep 2010 11:50:59 +0200
|
||||
|
||||
phpredis (1.0.0-1) unstable; urgency=low
|
||||
|
||||
* Initial release.
|
||||
|
||||
-- Simon Effenberg <se@plista.com> Wed, 22 Sep 2010 16:04:53 +0200
|
||||
1
debian/compat
vendored
Normal file
1
debian/compat
vendored
Normal file
@@ -0,0 +1 @@
|
||||
7
|
||||
13
debian/control
vendored
Normal file
13
debian/control
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
Source: phpredis
|
||||
Section: web
|
||||
Priority: optional
|
||||
Maintainer: Nicolas Favre-Felix <n.favre-felix@owlient.eu>
|
||||
Build-Depends: debhelper (>= 7), php5-dev
|
||||
Standards-Version: 3.8.0
|
||||
Homepage: http://github.com/owlient/phpredis
|
||||
|
||||
Package: phpredis
|
||||
Architecture: any
|
||||
Depends: ${shlibs:Depends}, ${misc:Depends}, ${php5:Depends}
|
||||
Recommends: php5
|
||||
Description: Redis C extension for PHP5.
|
||||
54
debian/copyright
vendored
Normal file
54
debian/copyright
vendored
Normal file
@@ -0,0 +1,54 @@
|
||||
This package was debianized by:
|
||||
|
||||
Simon Effenberg <savar@schuldeigen.de> on Mon, 22 Sep 2010 14:24:03 +0100
|
||||
|
||||
It was downloaded from:
|
||||
|
||||
http://github.com/owlient/phpredis
|
||||
|
||||
Upstream Author(s):
|
||||
|
||||
Alfonso Jimenez <yo@alfonsojimenez.com>
|
||||
Nasreddine Bouafif <n.bouafif@owlient.eu>
|
||||
Nicolas Favre-Felix <n.favre-felix@owlient.eu>
|
||||
|
||||
Copyright:
|
||||
|
||||
<Copyright (C) YYYY Firtname Lastname>
|
||||
<likewise for another author>
|
||||
|
||||
License:
|
||||
|
||||
### SELECT: ###
|
||||
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.
|
||||
### OR ###
|
||||
This package is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License version 2 as
|
||||
published by the Free Software Foundation.
|
||||
##########
|
||||
|
||||
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:
|
||||
|
||||
Copyright C) 2010, Simon Effenberg <savar@schuldeigen.de>
|
||||
|
||||
and is licensed under the GPL, see above.
|
||||
|
||||
|
||||
# Please also look if there are files or directories which have a
|
||||
# different copyright/license attached and list them here.
|
||||
|
||||
42
debian/postinst
vendored
Normal file
42
debian/postinst
vendored
Normal file
@@ -0,0 +1,42 @@
|
||||
#!/bin/sh
|
||||
# postinst script for phpredis
|
||||
#
|
||||
# see: dh_installdeb(1)
|
||||
|
||||
set -e
|
||||
|
||||
# summary of how this script can be called:
|
||||
# * <postinst> `configure' <most-recently-configured-version>
|
||||
# * <old-postinst> `abort-upgrade' <new version>
|
||||
# * <conflictor's-postinst> `abort-remove' `in-favour' <package>
|
||||
# <new-version>
|
||||
# * <postinst> `abort-remove'
|
||||
# * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
|
||||
# <failed-install-package> <version> `removing'
|
||||
# <conflicting-package> <version>
|
||||
# for details, see http://www.debian.org/doc/debian-policy/ or
|
||||
# the debian-policy package
|
||||
|
||||
case "$1" in
|
||||
configure)
|
||||
cat > /etc/php5/conf.d/redis.ini <<EOF
|
||||
; uncomment the next line to enable the module
|
||||
extension=redis.so
|
||||
EOF
|
||||
;;
|
||||
|
||||
abort-upgrade|abort-remove|abort-deconfigure)
|
||||
;;
|
||||
|
||||
*)
|
||||
echo "postinst called with unknown argument \`$1'" >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
# dh_installdeb will replace this with shell code automatically
|
||||
# generated by other debhelper scripts.
|
||||
|
||||
#DEBHELPER#
|
||||
|
||||
exit 0
|
||||
41
debian/postrm
vendored
Normal file
41
debian/postrm
vendored
Normal file
@@ -0,0 +1,41 @@
|
||||
#!/bin/sh
|
||||
# postinst script for an Apache virtual host component of plista
|
||||
#
|
||||
# see: dh_installdeb(1)
|
||||
|
||||
set -e
|
||||
|
||||
# summary of how this script can be called:
|
||||
# * <postrm> `remove'
|
||||
# * <postrm> `purge'
|
||||
# * <old-postrm> `upgrade' <new-version>
|
||||
# * <new-postrm> `failed-upgrade' <old-version>
|
||||
# * <new-postrm> `abort-install'
|
||||
# * <new-postrm> `abort-install' <old-version>
|
||||
# * <new-postrm> `abort-upgrade' <old-version>
|
||||
# * <disappearer's-postrm> `disappear' <overwriter>
|
||||
# <overwriter-version>
|
||||
# for details, see http://www.debian.org/doc/debian-policy/ or
|
||||
# the debian-policy package
|
||||
|
||||
case "$1" in
|
||||
purge)
|
||||
if [ -e /etc/php5/conf.d/redis.ini ]; then
|
||||
rm -f /etc/php5/conf.d/redis.ini
|
||||
fi
|
||||
;;
|
||||
remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
|
||||
;;
|
||||
|
||||
*)
|
||||
echo "postrm called with unknown argument \`$1'" >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
# dh_installdeb will replace this with shell code automatically
|
||||
# generated by other debhelper scripts.
|
||||
|
||||
#DEBHELPER#
|
||||
|
||||
exit 0
|
||||
100
debian/rules
vendored
Executable file
100
debian/rules
vendored
Executable file
@@ -0,0 +1,100 @@
|
||||
#!/usr/bin/make -f
|
||||
# Sample debian/rules that uses debhelper.
|
||||
# This file is public domain software, originally written by Joey Hess.
|
||||
#
|
||||
# This version is for packages that are architecture dependent.
|
||||
|
||||
# Uncomment this to turn on verbose mode.
|
||||
#export DH_VERBOSE=1
|
||||
|
||||
DEB_SRCDIR=$(shell pwd)
|
||||
INSTALL_DIR=$(DEB_SRCDIR)/debian/$(shell dh_listpackages)
|
||||
EXTENSION_DIR=`php-config5 --extension-dir`
|
||||
CFLAGS = -O3
|
||||
|
||||
|
||||
build: build-stamp
|
||||
build-stamp:
|
||||
dh_testdir
|
||||
|
||||
# Add here commands to compile the package.
|
||||
|
||||
# Because phpize --clean removes all testfiles
|
||||
# in tests/*.php the svn-buildpackage will fail
|
||||
# when tests/TestRedis.php was removed.
|
||||
# So we backup the file:
|
||||
cd $(DEB_SRCDIR) && mv tests/TestRedis.php tests/TestRedis.php.bak && \
|
||||
phpize --clean && mv tests/TestRedis.php.bak tests/TestRedis.php && \
|
||||
phpize && \
|
||||
./configure --with-php-config=/usr/bin/php-config5
|
||||
$(MAKE) -C $(DEB_SRCDIR)
|
||||
|
||||
touch build-stamp
|
||||
|
||||
clean:
|
||||
dh_testdir
|
||||
dh_testroot
|
||||
rm -f build-stamp
|
||||
|
||||
# Add here commands to clean up after the build process.
|
||||
# See comment in build-stamp why doing the 'mv'
|
||||
cd $(DEB_SRCDIR) && mv tests/TestRedis.php tests/TestRedis.php.bak && \
|
||||
phpize --clean && mv tests/TestRedis.php.bak tests/TestRedis.php
|
||||
#$(MAKE) -C $(DEB_SRCDIR) clean
|
||||
#$(MAKE) distclean
|
||||
|
||||
dh_clean
|
||||
|
||||
install: build
|
||||
dh_testdir
|
||||
dh_testroot
|
||||
dh_prep
|
||||
dh_installdirs
|
||||
|
||||
# Add here commands to install the package into debian/<packagename>
|
||||
$(MAKE) prefix=$(INSTALL_DIR)/usr EXTENSION_DIR=$(INSTALL_DIR)$(EXTENSION_DIR) install
|
||||
|
||||
# Build architecture-independent files here.
|
||||
binary-indep: build install
|
||||
# We have nothing to do by default.
|
||||
|
||||
# Build architecture-dependent files here.
|
||||
binary-arch: build install
|
||||
dh_testdir
|
||||
dh_testroot
|
||||
dh_installchangelogs
|
||||
dh_installdocs
|
||||
dh_installexamples
|
||||
# dh_install
|
||||
# dh_installmenu
|
||||
# dh_installdebconf
|
||||
# dh_installlogrotate
|
||||
# dh_installemacsen
|
||||
# dh_installcatalogs
|
||||
# dh_installpam
|
||||
# dh_installmime
|
||||
# dh_installinit
|
||||
# dh_installcron
|
||||
# dh_installinfo
|
||||
# dh_installwm
|
||||
# dh_installudev
|
||||
# dh_lintian
|
||||
# dh_bugfiles
|
||||
# dh_undocumented
|
||||
dh_installman
|
||||
dh_link
|
||||
dh_strip
|
||||
dh_compress
|
||||
dh_fixperms
|
||||
# dh_perl
|
||||
# dh_makeshlibs
|
||||
dh_installdeb
|
||||
dh_shlibdeps
|
||||
cd $(DEB_SRCDIR) && \
|
||||
echo "php5:Depends=phpapi-`php-config5 --phpapi`, php5-common" >> debian/phpredis.substvars
|
||||
dh_gencontrol
|
||||
dh_md5sums
|
||||
dh_builddeb
|
||||
|
||||
binary: binary-indep binary-arch
|
||||
.PHONY: build clean binary-indep binary-arch binary install
|
||||
Reference in New Issue
Block a user