updated building process for debian and fixed minor code glitches
This commit is contained in:
parent
5d178b4366
commit
1914f8117d
@ -1,9 +1,9 @@
|
|||||||
Package: @PACKAGE@
|
Package: @PACKAGE@
|
||||||
Version: @VERSION@
|
Version: @VERSION@
|
||||||
Maintainer: @PACKAGE_BUGREPORT@
|
Maintainer: CHUNG, HYUNG-HWAN
|
||||||
Homepage: @PACKAGE_URL@
|
Homepage: @PACKAGE_URL@
|
||||||
Depends: subversion, apache2, libapache2-svn, libapache2-mod-perl2, libapache2-mod-php5, php5, php5-ldap, php5-gd, perl, libdbi-perl, libconfig-simple-perl, libsvn-perl, libnet-ldap-perl, libdigest-sha1-perl
|
Depends: subversion, apache2, libapache2-svn, libapache2-mod-perl2, libapache2-mod-php5, php5, php5-ldap, php5-gd, perl, libdbi-perl, libconfig-simple-perl, libsvn-perl, libnet-ldap-perl, libdigest-sha1-perl
|
||||||
Recommends: php5-mysql, php5-svn (>= 0.5.1)
|
Recommends: php5-mysql
|
||||||
Suggests: slapd, mysql-server
|
Suggests: slapd, mysql-server
|
||||||
Section: web
|
Section: web
|
||||||
Priority: optional
|
Priority: optional
|
||||||
|
@ -6,7 +6,6 @@ SUBDIRS = etc src sbin pecl-svn
|
|||||||
EXTRA_DIST = README mkmf.sh DEBIAN
|
EXTRA_DIST = README mkmf.sh DEBIAN
|
||||||
|
|
||||||
PHP_PACKAGE_NAME ?= php
|
PHP_PACKAGE_NAME ?= php
|
||||||
TARGET_ARCH ?= $(shell uname -m)
|
|
||||||
|
|
||||||
install-data-hook:
|
install-data-hook:
|
||||||
$(INSTALL) -d "$(DESTDIR)@DEPOTDIR@"
|
$(INSTALL) -d "$(DESTDIR)@DEPOTDIR@"
|
||||||
@ -33,14 +32,16 @@ distclean-local:
|
|||||||
# TODO: specify --with-phpextdir and --with-phpextinidir for the deb target
|
# TODO: specify --with-phpextdir and --with-phpextinidir for the deb target
|
||||||
deb: dist-gzip
|
deb: dist-gzip
|
||||||
tar -zxvf "$(PACKAGE)-$(VERSION).tar.gz"
|
tar -zxvf "$(PACKAGE)-$(VERSION).tar.gz"
|
||||||
cd "$(PACKAGE)-$(VERSION)"; ./configure \
|
cd "$(PACKAGE)-$(VERSION)"; PHPEXTDIR="`php5 --info 2>/dev/null | grep ^extension_dir | awk '{print $$5;}'`"; ./configure \
|
||||||
--prefix=/usr \
|
--prefix=/usr \
|
||||||
--sysconfdir=/etc \
|
--sysconfdir=/etc \
|
||||||
--with-wwwdir=/var/www/codepot \
|
--with-wwwdir=/var/www/codepot \
|
||||||
--with-cfgdir=/etc/codepot \
|
--with-cfgdir=/etc/codepot \
|
||||||
--with-depotdir=/var/lib/codepot \
|
--with-depotdir=/var/lib/codepot \
|
||||||
--with-logdir=/var/log/codepot \
|
--with-logdir=/var/log/codepot \
|
||||||
--with-cachedir=/var/cache/codepot
|
--with-cachedir=/var/cache/codepot \
|
||||||
|
--with-phpextdir="$${PHPEXTDIR}" \
|
||||||
|
--with-phpextinidir=/etc/php5/conf.d
|
||||||
rm -rf "/var/tmp/$(PACKAGE)-$(VERSION)"
|
rm -rf "/var/tmp/$(PACKAGE)-$(VERSION)"
|
||||||
cd "$(PACKAGE)-$(VERSION)"; make install DESTDIR="/var/tmp/$(PACKAGE)-$(VERSION)"
|
cd "$(PACKAGE)-$(VERSION)"; make install DESTDIR="/var/tmp/$(PACKAGE)-$(VERSION)"
|
||||||
cd "$(PACKAGE)-$(VERSION)/DEBIAN"; make install DESTDIR="/var/tmp/$(PACKAGE)-$(VERSION)"
|
cd "$(PACKAGE)-$(VERSION)/DEBIAN"; make install DESTDIR="/var/tmp/$(PACKAGE)-$(VERSION)"
|
||||||
@ -57,4 +58,4 @@ rpm: dist
|
|||||||
mkdir -p "@abs_top_builddir@/RPM/SRPMS"
|
mkdir -p "@abs_top_builddir@/RPM/SRPMS"
|
||||||
mkdir -p "@abs_top_builddir@/RPM/RPMS"
|
mkdir -p "@abs_top_builddir@/RPM/RPMS"
|
||||||
cp codepot-@VERSION@.tar.gz "@abs_top_builddir@/RPM/SOURCES"
|
cp codepot-@VERSION@.tar.gz "@abs_top_builddir@/RPM/SOURCES"
|
||||||
rpmbuild --define "_topdir @abs_top_builddir@/RPM" --define "php_package_name $(PHP_PACKAGE_NAME)" -ba codepot.spec --target="$(TARGET_ARCH)"
|
TARGET_ARCH="`uname -m`"; rpmbuild --define "_topdir @abs_top_builddir@/RPM" --define "php_package_name $(PHP_PACKAGE_NAME)" -ba codepot.spec --target="$${TARGET_ARCH}"
|
||||||
|
@ -739,7 +739,6 @@ uninstall-am:
|
|||||||
|
|
||||||
|
|
||||||
PHP_PACKAGE_NAME ?= php
|
PHP_PACKAGE_NAME ?= php
|
||||||
TARGET_ARCH ?= $(shell uname -m)
|
|
||||||
|
|
||||||
install-data-hook:
|
install-data-hook:
|
||||||
$(INSTALL) -d "$(DESTDIR)@DEPOTDIR@"
|
$(INSTALL) -d "$(DESTDIR)@DEPOTDIR@"
|
||||||
@ -765,14 +764,16 @@ distclean-local:
|
|||||||
# TODO: specify --with-phpextdir and --with-phpextinidir for the deb target
|
# TODO: specify --with-phpextdir and --with-phpextinidir for the deb target
|
||||||
deb: dist-gzip
|
deb: dist-gzip
|
||||||
tar -zxvf "$(PACKAGE)-$(VERSION).tar.gz"
|
tar -zxvf "$(PACKAGE)-$(VERSION).tar.gz"
|
||||||
cd "$(PACKAGE)-$(VERSION)"; ./configure \
|
cd "$(PACKAGE)-$(VERSION)"; PHPEXTDIR="`php5 --info 2>/dev/null | grep ^extension_dir | awk '{print $$5;}'`"; ./configure \
|
||||||
--prefix=/usr \
|
--prefix=/usr \
|
||||||
--sysconfdir=/etc \
|
--sysconfdir=/etc \
|
||||||
--with-wwwdir=/var/www/codepot \
|
--with-wwwdir=/var/www/codepot \
|
||||||
--with-cfgdir=/etc/codepot \
|
--with-cfgdir=/etc/codepot \
|
||||||
--with-depotdir=/var/lib/codepot \
|
--with-depotdir=/var/lib/codepot \
|
||||||
--with-logdir=/var/log/codepot \
|
--with-logdir=/var/log/codepot \
|
||||||
--with-cachedir=/var/cache/codepot
|
--with-cachedir=/var/cache/codepot \
|
||||||
|
--with-phpextdir="$${PHPEXTDIR}" \
|
||||||
|
--with-phpextinidir=/etc/php5/conf.d
|
||||||
rm -rf "/var/tmp/$(PACKAGE)-$(VERSION)"
|
rm -rf "/var/tmp/$(PACKAGE)-$(VERSION)"
|
||||||
cd "$(PACKAGE)-$(VERSION)"; make install DESTDIR="/var/tmp/$(PACKAGE)-$(VERSION)"
|
cd "$(PACKAGE)-$(VERSION)"; make install DESTDIR="/var/tmp/$(PACKAGE)-$(VERSION)"
|
||||||
cd "$(PACKAGE)-$(VERSION)/DEBIAN"; make install DESTDIR="/var/tmp/$(PACKAGE)-$(VERSION)"
|
cd "$(PACKAGE)-$(VERSION)/DEBIAN"; make install DESTDIR="/var/tmp/$(PACKAGE)-$(VERSION)"
|
||||||
@ -789,7 +790,7 @@ rpm: dist
|
|||||||
mkdir -p "@abs_top_builddir@/RPM/SRPMS"
|
mkdir -p "@abs_top_builddir@/RPM/SRPMS"
|
||||||
mkdir -p "@abs_top_builddir@/RPM/RPMS"
|
mkdir -p "@abs_top_builddir@/RPM/RPMS"
|
||||||
cp codepot-@VERSION@.tar.gz "@abs_top_builddir@/RPM/SOURCES"
|
cp codepot-@VERSION@.tar.gz "@abs_top_builddir@/RPM/SOURCES"
|
||||||
rpmbuild --define "_topdir @abs_top_builddir@/RPM" --define "php_package_name $(PHP_PACKAGE_NAME)" -ba codepot.spec --target="$(TARGET_ARCH)"
|
TARGET_ARCH="`uname -m`"; rpmbuild --define "_topdir @abs_top_builddir@/RPM" --define "php_package_name $(PHP_PACKAGE_NAME)" -ba codepot.spec --target="$${TARGET_ARCH}"
|
||||||
|
|
||||||
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||||
# Otherwise a system limit (for SysV at least) may be exceeded.
|
# Otherwise a system limit (for SysV at least) may be exceeded.
|
||||||
|
@ -34,6 +34,7 @@ class Project extends Controller
|
|||||||
|
|
||||||
if ($filter == '')
|
if ($filter == '')
|
||||||
{
|
{
|
||||||
|
$search = new stdClass();
|
||||||
$search->id = '';
|
$search->id = '';
|
||||||
$search->name = '';
|
$search->name = '';
|
||||||
$search->summary = '';
|
$search->summary = '';
|
||||||
|
@ -10,6 +10,7 @@ class SiteModel extends Model
|
|||||||
|
|
||||||
function getDefault ()
|
function getDefault ()
|
||||||
{
|
{
|
||||||
|
$site = new stdClass();
|
||||||
$site->id = CODEPOT_DEFAULT_SITE_LANGUAGE;
|
$site->id = CODEPOT_DEFAULT_SITE_LANGUAGE;
|
||||||
$site->name = CODEPOT_DEFAULT_SITE_NAME;
|
$site->name = CODEPOT_DEFAULT_SITE_NAME;
|
||||||
$site->summary = '';
|
$site->summary = '';
|
||||||
|
@ -49,7 +49,11 @@ if (function_exists('date_default_timezone_set') && !ini_get('date.timezone'))
|
|||||||
else if (file_exists('/etc/timezone'))
|
else if (file_exists('/etc/timezone'))
|
||||||
{
|
{
|
||||||
// Debian
|
// Debian
|
||||||
$tz = file_get_contents('/etc/timezone');
|
$tz = @file_get_contents('/etc/timezone');
|
||||||
|
if ($tz !== FALSE && strlen($tz) > 0)
|
||||||
|
{
|
||||||
|
$tz = substr ($tz, 0, strpos ($tz, "\n"));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else if (file_exists('/etc/sysconfig/clock'))
|
else if (file_exists('/etc/sysconfig/clock'))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user