diff options
Diffstat (limited to 'community/e4rat')
-rw-r--r-- | community/e4rat/PKGBUILD | 32 | ||||
-rw-r--r-- | community/e4rat/e4rat.install | 20 |
2 files changed, 52 insertions, 0 deletions
diff --git a/community/e4rat/PKGBUILD b/community/e4rat/PKGBUILD new file mode 100644 index 000000000..128defb93 --- /dev/null +++ b/community/e4rat/PKGBUILD @@ -0,0 +1,32 @@ +# $Id: PKGBUILD 57392 2011-10-26 21:18:24Z mtorromeo $ +# Maintainer: Massimiliano Torromeo <massimiliano.torromeo@gmail.com> +# Contributor: graysky <graysky AT archlinux DOT us> + +pkgname=e4rat +pkgver=0.2.1 +pkgrel=3 +pkgdesc="Toolset to accelerate the boot process and application startups. Root partition must be ext4 ONLY!" +arch=('i686' 'x86_64') +url="http://e4rat.sourceforge.net/" +license=('GPL') +depends=('e2fsprogs' 'util-linux') +makedepends=('audit' 'boost' 'cmake' 'e2fsprogs' 'perl' 'util-linux') +options=(!strip) +install=("$pkgname.install") +source=(http://downloads.sourceforge.net/project/$pkgname/$pkgver/e4rat_"$pkgver"_src.tar.gz) + +build() { + unset LDFLAGS + cd "$srcdir/$pkgname-$pkgver" + cmake -DCMAKE_BUILD_TYPE=Release . + make +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + make DESTDIR="$pkgdir" install + install -dm755 "$pkgdir"/var/lib/$pkgname +} + +md5sums=('cbb1f3cdd2b8c96b4402028da07b11f2') +sha256sums=('c509f165eff317f80f5d13d7b370514c457df4542ff3b31bee4c26f97ce89769') diff --git a/community/e4rat/e4rat.install b/community/e4rat/e4rat.install new file mode 100644 index 000000000..4990280e3 --- /dev/null +++ b/community/e4rat/e4rat.install @@ -0,0 +1,20 @@ +post_install() { + echo '--------------------------------------------------------------------------' + echo ' SETUP INSTRUCTIONS' + echo + echo ' https://wiki.archlinux.org/index.php/E4rat' + echo '--------------------------------------------------------------------------' + echo + echo '--------------------------------------------------------------------------' + echo ' SUMMARY' + echo 'add to grub kernel line:' + echo ' init=/sbin/e4rat-collect' + echo + echo 'log data for 2 min, then' + echo ' sudo init 1' + echo ' e4rat-realloc /var/lib/e4rat/startup.log' + echo + echo 'substitute init=/sbin/e4rat-collect with' + echo ' init=/sbin/e4rat-preload' + echo '--------------------------------------------------------------------------' +} |