Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=fwlive.git;a=commitdiff;h=c90153923fbdbd4fb5a69545caa7259996dcebf9

commit c90153923fbdbd4fb5a69545caa7259996dcebf9
Author: janny <[EMAIL PROTECTED]>
Date:   Tue Mar 4 18:17:10 2008 +0100

redirfs-fwlive-0.2-3-i686
* add redifs to fwlive repo

diff --git a/source/apps-extra/redirfs-fwlive/FrugalBuild 
b/source/apps-extra/redirfs-fwlive/FrugalBuild
new file mode 100644
index 0000000..3f00a07
--- /dev/null
+++ b/source/apps-extra/redirfs-fwlive/FrugalBuild
@@ -0,0 +1,28 @@
+# Compiling Time: 0.04 SBU
+# Maintainer: VMiklos <[EMAIL PROTECTED]>
+
+pkgname=redirfs-fwlive
+_F_archive_name=redirfs
+pkgver=0.2
+pkgrel=3
+pkgdesc="Redirecting FileSystem"
+url="http://redirfs.org/";
+_F_kernelmod_scriptlet=$_F_archive_name.install
+Finclude kernel-module
+kver=2.6.24-3
+depends=("kernel-fwlive=$kver")
+makedepends=("kernel-fwlive-source=$kver")
+groups=('apps-extra')
+archs=('i686' 'x86_64')
+up2date="lynx -dump 
http://redirfs.org/tiki-index.php?page=redirfs_download|grep -m1 gz$|Flasttar"
+source=(http://www.redirfs.org/packages/redirfs-$pkgver.tar.gz)
+sha1sums=('c736b6a9b9cb0540010eb865febfd4f3b1fe6d82')
+
+build()
+{
+       # no Fcheckkernel, crosscompilation verified
+       Fsed 'uname -r' "echo $_F_kernelmod_uname" Makefile
+       Fmake
+       Ffilerel /lib/modules/$_F_kernelmod_uname/extra/$_F_archive_name.ko
+       Fbuild_kernelmod_scriptlet
+}
diff --git a/source/apps-extra/redirfs-fwlive/redirfs.install 
b/source/apps-extra/redirfs-fwlive/redirfs.install
new file mode 100644
index 0000000..8162fbb
--- /dev/null
+++ b/source/apps-extra/redirfs-fwlive/redirfs.install
@@ -0,0 +1,38 @@
+post_install()
+{
+       if ! grep -q  redirfs /etc/sysconfig/modules; then
+               echo -n "adding redirfs to /etc/sysconfig/modules..."
+               echo redirfs >> /etc/sysconfig/modules
+               echo " done."
+        fi
+       depmod -a $_F_kernelmod_uname
+       if lsmod|grep -q redirfs; then
+               rmmod redirfs
+       fi
+       echo -n "loading redirfs..."
+       modprobe redirfs
+       echo " done."
+}
+
+post_upgrade()
+{
+       post_install
+}
+
+pre_remove()
+{
+       if grep -q  redirfs /etc/sysconfig/modules; then
+               echo -n "removing redirfs from /etc/sysconfig/modules..."
+               sed -i '/^redirfs/d' /etc/sysconfig/modules
+               echo " done."
+        fi
+       if lsmod|grep -q redirfs; then
+               echo -n "unloading redirfs..."
+               rmmod redirfs
+               echo " done."
+       fi
+}
+
+op=$1
+shift
+$op $*
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to