# HG changeset patch # User Tomas Zeman # Date 1228136289 -3600 # Node ID 0d9eb19d17131823917b39d448dc74fd70ddc5db # Parent 9049a6a94d1fa27f5765007af7abbc6c666972d9 Removed dmraid, drbd-*, omail-admin patches: unusable or obsoleted diff -r 9049a6a94d1f -r 0d9eb19d1713 dmraid.patch --- a/dmraid.patch Mon Dec 01 13:51:50 2008 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,38 +0,0 @@ -dmraid - -diff --git a/source/custom/dmraid/FrugalBuild b/source/custom/dmraid/FrugalBuild -new file mode 100644 -index 0000000..49bc6a7 ---- /dev/null -+++ b/source/custom/dmraid/FrugalBuild -@@ -0,0 +1,30 @@ -+# Taken from Archlinux -+ -+pkgname=dmraid -+pkgver=1.0.0.rc14 -+pkgrel=1 -+pkgdesc="Device mapper RAID interface" -+url="http://people.redhat.com/~heinzm/sw/dmraid/" -+depends=(device-mapper) -+archs=('i686') -+groups=('custom') -+license=('GPL') -+up2date="lynx -dump $url/src| Flasttar" -+source=($url/src/$pkgname-$pkgver.tar.bz2) -+sha1sums=('2b3284db46a995967d88993ae5ae36b57c513bc4') -+ -+build() { -+ cd $startdir/src/$pkgname/$pkgver -+ -+ # create static bin -+ #./configure --enable-static_link --prefix=/usr -+ #make || return 1 -+ #make DESTDIR=$startdir/pkg exec_prefix=$startdir/pkg/usr install -+ #mv $startdir/pkg/usr/sbin/dmraid $startdir/pkg/usr/sbin/dmraid.static -+ -+ # create dynamic linked bin -+ ./configure --prefix=/usr -+ make || return 1 -+ make DESTDIR=$startdir/pkg exec_prefix=$startdir/pkg/usr install -+ mkdir -p $startdir/pkg/var/lock/dmraid -+} diff -r 9049a6a94d1f -r 0d9eb19d1713 drbd-module.patch --- a/drbd-module.patch Mon Dec 01 13:51:50 2008 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,90 +0,0 @@ -drbd-module-0.7 -diff --git a/source/custom/drbd-module/FrugalBuild b/source/custom/drbd-module/FrugalBuild -new file mode 100644 -index 0000000..49eaf89 ---- /dev/null -+++ b/source/custom/drbd-module/FrugalBuild -@@ -0,0 +1,36 @@ -+# Maintainer: Tomas Zeman -+ -+pkgorig=drbd -+pkgname=$pkgorig-module -+pkgver=0.7.25 -+pkgrel=2 -+pkgdesc="block device mirroring a whole block device via network; network raid-1 implementation" -+url="http://www.drbd.org" -+license="GPL" -+depends=(kernel-source gcc make "kernel=2.6.24") -+archs=(i686) -+install=drbd.install -+_F_scm_type="git" -+_F_scm_url="git://git.drbd.org/drbd-0.7.git" -+_F_scm_tag="fe0c05db16a4dbdc6cfcb20c68b2f61a7793df1a" -+Finclude scm -+ -+#up2date="lynx -dump -nolist http://oss.linbit.com/drbd/|grep drbd-0.7|grep tar.gz|head -1|sed -e 's/^.*drbd-\(.*\)\.tar\.gz.*$/\1/'" -+#source=(http://oss.linbit.com/drbd/0.7/$pkgorig-$pkgver.tar.gz 'http://git.drbd.org/?p=drbd-0.7.git;a=commitdiff_plain;h=fe0c05db16a4dbdc6cfcb20c68b2f61a7793df1a') -+#sha1sums=('9f507ffd41306409357e1eb4e6f73e3671acad28') -+ -+ -+build() { -+ Funpack_scm -+ #Fcd $pkgorig-$pkgver -+ #mkdir -p $startdir/pkg/usr/src/$pkgname -+ #cp -aR drbd $startdir/pkg/usr/src/$pkgname -+ #cp -aR scripts $startdir/pkg/usr/src/$pkgname -+ Fcd || Fdie -+ cd drbd -+ make clean -+ make KDIR=/usr/src/linux-`uname -r` || Fdie -+ make install PREFIX=$startdir/pkg || Fdie -+} -+ -+# vim: ft=sh -diff --git a/source/custom/drbd-module/drbd.install b/source/custom/drbd-module/drbd.install -new file mode 100644 -index 0000000..06437f2 ---- /dev/null -+++ b/source/custom/drbd-module/drbd.install -@@ -0,0 +1,41 @@ -+ -+# This is a default template for a post-install scriptlet. You can -+# remove any functions you don't need (and this header). -+ -+# arg 1: the new package version -+pre_install() { -+ /bin/true -+} -+ -+# arg 1: the new package version -+post_install() { -+ post_upgrade $1 -+} -+ -+# arg 1: the new package version -+# arg 2: the old package version -+pre_upgrade() { -+ /bin/true -+} -+ -+# arg 1: the new package version -+# arg 2: the old package version -+post_upgrade() { -+ DRBD_OBJ=/lib/modules/`uname -r`/kernel/drivers/block/drbd.ko -+ /sbin/depmod -a || /sbin/depmod -e $DRBD_OBJ -+} -+ -+# arg 1: the old package version -+pre_remove() { -+ /bin/true -+} -+ -+# arg 1: the old package version -+post_remove() { -+ /sbin/depmod -a -+} -+ -+op=$1 -+shift -+$op $* -+ diff -r 9049a6a94d1f -r 0d9eb19d1713 drbd-tools.patch --- a/drbd-tools.patch Mon Dec 01 13:51:50 2008 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,33 +0,0 @@ -drbd-tools-0.7 -diff --git a/source/custom/drbd-tools/FrugalBuild b/source/custom/drbd-tools/FrugalBuild -new file mode 100644 -index 0000000..24ad938 ---- /dev/null -+++ b/source/custom/drbd-tools/FrugalBuild -@@ -0,0 +1,26 @@ -+# Maintainer: Tomas Zeman -+ -+pkgorig=drbd -+pkgname=$pkgorig-tools -+pkgver=0.7.25 -+pkgrel=1 -+pkgdesc="block device mirroring a whole block device via network; network raid-1 implementation" -+url="http://www.drbd.org" -+license="GPL" -+archs=(i686) -+depends=(glibc) -+makedepends=(gcc bison flex m4) -+backup=(etc/drbd.conf) -+up2date="lynx -dump -nolist http://oss.linbit.com/drbd/|grep drbd-0.7|grep tar.gz|head -1|sed -e 's/^.*drbd-\(.*\)\.tar\.gz.*$/\1/'" -+source=(http://oss.linbit.com/drbd/0.7/$pkgorig-$pkgver.tar.gz) -+sha1sums=('9f507ffd41306409357e1eb4e6f73e3671acad28') -+ -+ -+build() { -+ Fcd $pkgorig-$pkgver -+ make clean tools || Fdie -+ make install-tools PREFIX=$startdir/pkg INITD=$startdir/pkg/etc/rc.d/ || Fdie -+ Fmv etc/rc.d/drbd etc/rc.d/rc.drbd -+} -+ -+# vim: ft=sh diff -r 9049a6a94d1f -r 0d9eb19d1713 omail-admin.patch --- a/omail-admin.patch Mon Dec 01 13:51:50 2008 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,47 +0,0 @@ -omail-admin - -diff --git a/source/custom/omail-admin/.htaccess b/source/custom/omail-admin/.htaccess -new file mode 100644 -index 0000000..978961b ---- /dev/null -+++ b/source/custom/omail-admin/.htaccess -@@ -0,0 +1,4 @@ -+php_value session.bug_compat_42 1 -+php_value session.bug_compat_warn 0 -+php_value session.use_cookies 0 -+php_value register_globals 1 -diff --git a/source/custom/omail-admin/FrugalBuild b/source/custom/omail-admin/FrugalBuild -new file mode 100644 -index 0000000..5f08d43 ---- /dev/null -+++ b/source/custom/omail-admin/FrugalBuild -@@ -0,0 +1,29 @@ -+# Maintainer: Tomas Zeman -+ -+pkgname=omail-admin -+pkgver=1.2rc1 -+pkgrel=1 -+pkgdesc="PHP4 based qmail+vmailmgrd Web interface" -+_F_sourceforge_dirname="omail" -+Finclude sourceforge -+backup=(etc/$pkgname/config.php etc/$pkgname/vmailmgrquotas) -+url="http://omail.omnis.ch/omail-admin/" -+purl="http://sourceforge.net/project/showfiles.php?group_id=3658" -+depends=('php' 'libmysqlclient' 'qmail-autoresponder') -+archs=('i686') -+up2date="lynx -nolist -dump '$purl'|grep -i '$pkgname'|grep .tar.gz|head -1|sed 's/.*$pkgname-\(.*\).tar.gz .*/\1/'" -+sha1sums=('7f652ba56f6b4064efbbae57204f5d661fbe937a') -+ -+build() { -+ www='/var/www' -+ Fmkdir $www/$pkgname /etc/$pkgname/vmailmgrd-tcp-hosts /usr/sbin /var/vmailstats -+ Fcd -+ find . -name 'CVS' |xargs rm -fr || Fdie -+ mv *.php *.inc images templates $Fdestdir$www/$pkgname || Fdie -+ cp scripts/README* . || Fdie -+ cp scripts/vmailstats.pl $Fdestdir/usr/sbin/vmailstats || Fdie -+ chmod 755 $Fdestdir/usr/sbin/vmailstats || Fdie -+ Fmv $www/$pkgname/config.php /etc/$pkgname/ -+ Fsed '^$vmailmgrquota_file .*' "\$vmailmgrquota_file = '/etc/$pkgname/vmailmgrquotas';" $Fdestdir/etc/$pkgname/config.php -+ Fln /etc/$pkgname/config.php $www/$pkgname/config.php -+}