From 861d6f1c255e7a9caedb23bdb86edff56597f48c Mon Sep 17 00:00:00 2001 From: Mike Staszel Date: Sun, 13 Jun 2010 18:22:14 -0700 Subject: [PATCH] Added wget and e2fs with fix for heimdal conflict and more depends for wget --- core/e2fsprogs/MIT-LICENSE | 25 ++++++++++++++++ core/e2fsprogs/PKGBUILD | 51 ++++++++++++++++++++++++++++++++ core/e2fsprogs/e2fsprogs.install | 20 +++++++++++++ core/e2fsprogs/mke2fs.conf | 26 ++++++++++++++++ core/wget/PKGBUILD | 30 +++++++++++++++++++ core/wget/wget.install | 20 +++++++++++++ 6 files changed, 172 insertions(+) create mode 100755 core/e2fsprogs/MIT-LICENSE create mode 100755 core/e2fsprogs/PKGBUILD create mode 100755 core/e2fsprogs/e2fsprogs.install create mode 100755 core/e2fsprogs/mke2fs.conf create mode 100755 core/wget/PKGBUILD create mode 100755 core/wget/wget.install diff --git a/core/e2fsprogs/MIT-LICENSE b/core/e2fsprogs/MIT-LICENSE new file mode 100755 index 000000000..d849b28f2 --- /dev/null +++ b/core/e2fsprogs/MIT-LICENSE @@ -0,0 +1,25 @@ +Copyright (c) 2003-2007 Theodore Ts'o +Copyright (c) 1997-2003 Yann Dirson +Copyright (c) 2001 Alcove +Copyright (c) 1997 Klee Dienes +Copyright (c) 1995-1996 Michael Nonweiler + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject +to the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY +KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE +WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS +BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN +AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/core/e2fsprogs/PKGBUILD b/core/e2fsprogs/PKGBUILD new file mode 100755 index 000000000..1363fa490 --- /dev/null +++ b/core/e2fsprogs/PKGBUILD @@ -0,0 +1,51 @@ +# Maintainer: Mike Staszel +# Contributor: judd + +# Plugbox Linux changes: Due to conflicts with heimdal, removed some files +# There are no other (e.g. configure, make) changes + +pkgname=e2fsprogs +pkgver=1.41.12 +pkgrel=2 +pkgdesc="Ext2/3/4 filesystem utilities" +arch=('arm') +license=('GPL' 'LGPL' 'MIT') +url="http://e2fsprogs.sourceforge.net" +groups=('base') +depends=('sh' 'util-linux-ng') +makedepends=('bc') +source=("http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.gz" + 'MIT-LICENSE') +backup=('etc/mke2fs.conf') +install=${pkgname}.install +sha1sums=('62b002fe507b2ddafc24b89532e472fe4b55a14f' + 'f4a0d5b0cdb980e3fedd6f5e7dde0b0ffb7bbdfb') + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + + # Remove unnecessary init.d directory + sed -i '/init\.d/s|^|#|' misc/Makefile.in || return 1 + + ./configure --prefix=/usr --with-root-prefix="" --enable-elf-shlibs \ + --disable-fsck --disable-uuidd \ + --disable-libuuid --disable-libblkid || return 1 + + make || return 1 +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}" + make DESTDIR="${pkgdir}" install install-libs || return 1 + + sed -i -e 's/^AWK=.*/AWK=awk/' "${pkgdir}/usr/bin/compile_et" || return 1 + + # install MIT license + install -Dm644 "${srcdir}/MIT-LICENSE" \ + "${pkgdir}/usr/share/licenses/${pkgname}/MIT-LICENSE" || return 1 + + # Remove heimdal conflicts (Plugbox modification) + rm $pkgdir/usr/bin/compile_et + rm $pkgdir/usr/lib/libcom_err.a + rm $pkgdir/usr/lib/libcom_err.so +} diff --git a/core/e2fsprogs/e2fsprogs.install b/core/e2fsprogs/e2fsprogs.install new file mode 100755 index 000000000..f91d39f0e --- /dev/null +++ b/core/e2fsprogs/e2fsprogs.install @@ -0,0 +1,20 @@ +infodir=/usr/share/info +filelist=(libext2fs.info.gz) + +post_install() { + [ -x usr/bin/install-info ] || return 0 + for file in ${filelist[@]}; do + install-info $infodir/$file $infodir/dir 2> /dev/null + done +} + +post_upgrade() { + post_install $1 +} + +pre_remove() { + [ -x usr/bin/install-info ] || return 0 + for file in ${filelist[@]}; do + install-info --delete $infodir/$file $infodir/dir 2> /dev/null + done +} diff --git a/core/e2fsprogs/mke2fs.conf b/core/e2fsprogs/mke2fs.conf new file mode 100755 index 000000000..92464e3b4 --- /dev/null +++ b/core/e2fsprogs/mke2fs.conf @@ -0,0 +1,26 @@ +[defaults] + base_features = sparse_super,filetype,resize_inode,dir_index,ext_attr + blocksize = 4096 + inode_size = 128 + inode_ratio = 16384 + +[fs_types] + small = { + blocksize = 1024 + inode_size = 128 + inode_ratio = 4096 + } + floppy = { + blocksize = 1024 + inode_size = 128 + inode_ratio = 8192 + } + news = { + inode_ratio = 4096 + } + largefile = { + inode_ratio = 1048576 + } + largefile4 = { + inode_ratio = 4194304 + } diff --git a/core/wget/PKGBUILD b/core/wget/PKGBUILD new file mode 100755 index 000000000..62a70af21 --- /dev/null +++ b/core/wget/PKGBUILD @@ -0,0 +1,30 @@ +# Maintainer: Mike Staszel +# Contributor: Judd Vinet + +# Plugbox changes: ONLY added libidn and libsigsegv to depends + +pkgname=wget +pkgver=1.12 +pkgrel=3 +pkgdesc="A network utility to retrieve files from the Web" +arch=('arm') +url="http://www.gnu.org/software/wget/wget.html" +license=('GPL3') +groups=('base') +depends=('glibc' 'openssl' 'libidn' 'libsigsegv') +optdepends=('ca-certificates: HTTPS downloads') +backup=('etc/wgetrc') +install=wget.install +source=(ftp://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.gz) +md5sums=('141461b9c04e454dc8933c9d1f2abf83') + +build() { + cd ${srcdir}/$pkgname-$pkgver + ./configure --prefix=/usr --sysconfdir=/etc + make || return 1 +} + +package() { + cd ${srcdir}/$pkgname-$pkgver + make DESTDIR=${pkgdir} install +} diff --git a/core/wget/wget.install b/core/wget/wget.install new file mode 100755 index 000000000..171533352 --- /dev/null +++ b/core/wget/wget.install @@ -0,0 +1,20 @@ +infodir=/usr/share/info +filelist=(wget.info) + +post_install() { + [ -x usr/bin/install-info ] || return 0 + for file in ${filelist[@]}; do + install-info $infodir/$file $infodir/dir 2> /dev/null + done +} + +post_upgrade() { + post_install $1 +} + +pre_remove() { + [ -x usr/bin/install-info ] || return 0 + for file in ${filelist[@]}; do + install-info --delete $infodir/$file $infodir/dir 2> /dev/null + done +}