diff options
author | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
---|---|---|
committer | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
commit | 415856bdd4f48ab4f2732996f0bae58595092bbe (patch) | |
tree | ede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/cdfs |
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/cdfs')
-rw-r--r-- | community/cdfs/PKGBUILD | 32 | ||||
-rw-r--r-- | community/cdfs/cdfs.install | 11 |
2 files changed, 43 insertions, 0 deletions
diff --git a/community/cdfs/PKGBUILD b/community/cdfs/PKGBUILD new file mode 100644 index 000000000..bf4dd2d8b --- /dev/null +++ b/community/cdfs/PKGBUILD @@ -0,0 +1,32 @@ +# $Id: PKGBUILD 38934 2011-02-03 15:17:27Z spupykin $ +# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com> +# Contributor: J. Santiago Hirschfeld <jsantiagoh@yahoo.com.ar> + +pkgname=cdfs +pkgver=2.6.27 +pkgrel=13 +pkgdesc="File system module that 'exports' all tracks and boot images on a CD as normal files." +arch=(i686 x86_64) +url="http://www.elis.UGent.be/~ronsse/cdfs/" +license=('GPL') +install=cdfs.install +source=("http://www.elis.UGent.be/~ronsse/cdfs/download/$pkgname-$pkgver.tar.bz2") +md5sums=('ac64c014a90e3c488394832ea29605b3') + +build() { + _kernver=`pacman -Q kernel26 | cut -d . -f 3 | cut -f 1 -d -` + depends=("kernel26>=2.6.${_kernver}" "kernel26<2.6.`expr ${_kernver} + 1`") + + cd $srcdir/$pkgname-$pkgver + + patch cddata.c <<EOF +85c85 +< .sendfile = generic_file_sendfile +--- +> // .sendfile = generic_file_sendfile +EOF + + make + mkdir -p $pkgdir/lib/modules/`uname -r`/extra + cp cdfs.ko $pkgdir/lib/modules/`uname -r`/extra +} diff --git a/community/cdfs/cdfs.install b/community/cdfs/cdfs.install new file mode 100644 index 000000000..3693d60ed --- /dev/null +++ b/community/cdfs/cdfs.install @@ -0,0 +1,11 @@ +post_install() { + /sbin/depmod -a +} + +post_upgrade() { + /sbin/depmod -a +} + +post_remove() { + /sbin/depmod -a +} |