mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-14 16:19:03 +08:00
65 lines
2.3 KiB
Bash
65 lines
2.3 KiB
Bash
#
|
|
# Chakra Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
|
|
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
|
|
|
|
# include global config
|
|
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
|
|
|
|
pkgname=kernel26-testing-aufs2
|
|
pkgver=2.6.35_20100809
|
|
pkgrel=1
|
|
_kernver=${pkgver%_*}-CHAKRA
|
|
pkgdesc="Another Unionfs Implementation"
|
|
arch=('i686' 'x86_64')
|
|
url="http://aufs.sourceforge.net/"
|
|
license=('GPL2')
|
|
depends=('kernel26-testing>=2.6.35' 'kernel26-testing<2.6.36')
|
|
makedepends=('kernel26-testing-headers>=2.6.35' 'kernel26-testing-headers<2.6.36')
|
|
replaces=('aufs' 'aufs2')
|
|
conflicts=('aufs2')
|
|
install=aufs2.install
|
|
source=("http://chakra-project.org/sources/aufs2/aufs2-${pkgver}.tar.gz")
|
|
options=(!makeflags)
|
|
md5sums=('7fee91c73274151b4a83982771a5c358')
|
|
|
|
build() {
|
|
cd ${srcdir}/aufs2-${pkgver} || return 1
|
|
|
|
# msg "add patches"
|
|
|
|
msg "start config"
|
|
sed -i 's|CONFIG_AUFS_HNOTIFY =.*|CONFIG_AUFS_HNOTIFY = y\nCONFIG_INOTIFY = y|' \
|
|
config.mk || return 1
|
|
sed -i 's|CONFIG_AUFS_HFSNOTIFY =.*|CONFIG_AUFS_HFSNOTIFY = y|' \
|
|
config.mk || return 1
|
|
sed -i 's|CONFIG_AUFS_EXPORT =.*|CONFIG_AUFS_EXPORT = y\nCONFIG_EXPORTFS = y|' \
|
|
config.mk || return 1
|
|
sed -i 's|CONFIG_AUFS_SHWH =.*|CONFIG_AUFS_SHWH = y|' \
|
|
config.mk || return 1
|
|
sed -i 's|CONFIG_AUFS_BDEV_LOOP =.*|CONFIG_AUFS_BDEV_LOOP = y\nCONFIG_BLK_DEV_LOOP = y|' \
|
|
config.mk || return 1
|
|
sed -i 's|CONFIG_AUFS_BR_RAMFS =.*|CONFIG_AUFS_BR_RAMFS = y|' \
|
|
config.mk || return 1
|
|
sed -i 's|CONFIG_AUFS_DEBUG =.*|CONFIG_AUFS_DEBUG =|' \
|
|
config.mk || return 1
|
|
if [ "${CARCH}" = "x86_64" ]; then
|
|
inot64=" y"
|
|
else
|
|
inot64=""
|
|
fi
|
|
sed -i "s|CONFIG_AUFS_INO_T_64 =.*|CONFIG_AUFS_INO_T_64 =${inot64}|" \
|
|
config.mk || return 1
|
|
# build
|
|
make KDIR=/usr/src/linux-${_kernver} || return 1
|
|
# install
|
|
install -D -m644 fs/aufs/aufs.ko \
|
|
$pkgdir/lib/modules/${_kernver}/kernel/fs/aufs/aufs.ko || return 1
|
|
# tweak the install script for the right kernel version
|
|
sed -i -e "s/KERNEL_VERSION=.*/KERNEL_VERSION=${_kernver}/g" \
|
|
$startdir/aufs2.install || return 1
|
|
# install include files
|
|
install -D -m 644 include/linux/aufs_type.h $pkgdir/usr/src/linux-$_kernver/include/linux/aufs_type.h || return 1
|
|
}
|