Core PKGBUILDs Ready

This commit is contained in:
Mike Staszel 2009-09-26 12:10:12 -05:00
parent 574d5c4dfb
commit a905fcd2e2
61 changed files with 346 additions and 1206 deletions

View file

@ -1,18 +0,0 @@
# Maintainer: Alexander Foremny <alexanderforemny@gmail.com>
pkgname=pacman-mirrorlist
pkgver=20090715
pkgrel=2
pkgdesc="Arch Linux mirror list for use by pacman"
arch=(arm)
url="http://www.archlinux.org/pacman/"
license=('GPL')
groups=('base')
backup=(etc/pacman.d/mirrorlist)
source=(mirrorlist)
build() {
mkdir -p $pkgdir/etc/pacman.d
install -m644 $srcdir/mirrorlist $pkgdir/etc/pacman.d/
}

View file

@ -1,12 +0,0 @@
#
# Arch Linux Mobile repository mirrorlist
#
# Master server
Server = http://repo.archmobile.org/arm/$repo
# Official mirrors
Server = http://www.teco.edu/~scholl/archarm/arm/$repo
Server = http://67.23.5.160/~harlekin/archmobile/arm/$repo
Server = http://hiciu.rootnode.net/arch-arm/arm/$repo

View file

@ -1,35 +0,0 @@
# Maintainer: Manuel Rotter <rotter.manuel@gmail.com>
pkgname=pacman-static
_pkgname=pacman
pkgver=3.2.2
pkgrel=1
pkgdesc="Static version of pacman executable"
arch=('arm')
url="http://www.archlinux.org/pacman/"
license=('GPL')
groups=('small-base')
depends=('pacman>=3.2.2')
makedepends=('pacman>=3.2.2' 'gettext')
options=(!libtool)
source=(ftp://ftp.archlinux.org/other/pacman/$_pkgname-$pkgver.tar.gz)
md5sums=('8404fc38566bb52f8eee2ea483a41051')
build() {
cd $srcdir/$_pkgname-$pkgver
echo 'SUBDIRS = src/pacman' > Makefile.am
sed -i -e 's/bin_PROGRAMS = pacman/bin_PROGRAMS = pacman.static/' \
-e 's|$(top_builddir)/lib/libalpm/.libs/libalpm.la|-lalpm|' \
src/pacman/Makefile.am
echo -e '\npacman_static_SOURCES = $(pacman_SOURCES)\npacman_static_LDFLAGS = $(LDFLAGS) -all-static' >> src/pacman/Makefile.am
touch ChangeLog ABOUT-NLS
aclocal || return 1
automake Makefile src/pacman/Makefile || return 1
./configure --prefix=/usr --sysconfdir=/etc
make || return 1
make DESTDIR=$pkgdir install || return 1
}
# vim: set ts=2 sw=2 et:

View file

@ -1,4 +1,6 @@
# Maintainer: Krzysztof "hiciu" Warzecha <kwarzecha7@gmail.com>
# Modified by OpenPogo
pkgname=pam
pkgver=1.0.4
pkgrel=1
@ -7,12 +9,12 @@ arch=(arm)
license=('GPL2')
url="http://www.kernel.org/pub/linux/libs/pam/"
groups=('base')
depends=('glibc' 'db>=4.7' 'cracklib')
depends=('db>=4.7' 'cracklib')
makedepends=('flex')
backup=(etc/security/{access.conf,group.conf,limits.conf,namespace.conf,namespace.init,pam_env.conf,time.conf} etc/pam.d/other etc/default/passwd etc/environment)
source=(http://www.kernel.org/pub/linux/libs/pam/library/Linux-PAM-$pkgver.tar.bz2 \
ftp://ftp.suse.com/pub/people/kukuk/pam/pam_unix2/pam_unix2-2.6.tar.bz2 \
other)
backup=(opt/etc/security/{access.conf,group.conf,limits.conf,namespace.conf,namespace.init,pam_env.conf,time.conf} opt/etc/pam.d/other opt/etc/default/passwd opt/etc/environment)
source=('http://www.kernel.org/pub/linux/libs/pam/library/Linux-PAM-1.0.4.tar.bz2'
'ftp://ftp.suse.com/pub/people/kukuk/pam/pam_unix2/pam_unix2-2.6.tar.bz2'
'other')
options=('!libtool' '!emptydirs')
md5sums=('189171821b56aaf791cc890d0707ea82'
'e2788389a6c59224110a45fcff30e02b'
@ -20,21 +22,19 @@ md5sums=('189171821b56aaf791cc890d0707ea82'
build() {
cd $srcdir/Linux-PAM-$pkgver
./configure --sysconfdir=/etc DESTDIR=$pkgdir --libdir=/lib
./configure --sysconfdir=/opt/etc DESTDIR=$pkgdir/opt --libdir=/opt/lib
make || return 1
make INSTALL=/bin/install DESTDIR=$pkgdir install
install -D -m644 ../other $pkgdir/etc/pam.d/other
# build pam_unix2 module
# source ftp://ftp.suse.com/pub/people/kukuk/pam/pam_unix2
make INSTALL=/bin/install DESTDIR=$pkgdir/opt install
install -D -m644 ../other $pkgdir/opt/etc/pam.d/other
cd $srcdir/pam_unix2-2.6
#fix "error: conflicting types for 'pam_syslog'" - this occurs only with our toolchain...
sed -i -e 's|pam_syslog (pam_handle_t|pam_syslog (const pam_handle_t|g' src/public.h src/support.c
./configure
./configure --sysconfdir=/opt/etc DESTDIR=$pkgdir/opt --libdir=/opt/lib
make || return 1
make DESTDIR=$pkgdir install
make DESTDIR=$pkgdir/opt install
# add the realtime permissions for audio users
sed -i 's|# End of file||' $pkgdir/etc/security/limits.conf
cat >>$pkgdir/etc/security/limits.conf <<_EOT
sed -i 's|# End of file||' $pkgdir/opt/etc/security/limits.conf
cat >>$pkgdir/opt/etc/security/limits.conf <<_EOT
* - rtprio 0
* - nice 0
@audio - rtprio 65
@ -42,12 +42,11 @@ build() {
@audio - memlock 40000
_EOT
# fix some missing symlinks from old pam for compatibility
cd $pkgdir/lib/security
cd $pkgdir/opt/lib/security
ln -s pam_unix.so pam_unix_acct.so
ln -s pam_unix.so pam_unix_auth.so
ln -s pam_unix.so pam_unix_passwd.so
ln -s pam_unix.so pam_unix_session.so
# set unix_chkpwd uid
chmod +s $pkgdir/sbin/unix_chkpwd
chmod +s $pkgdir/opt/sbin/unix_chkpwd
}

View file

@ -2,7 +2,7 @@
post_install() {
# need to run this immediately -- pacman only runs it at the end of
# all package installs
/sbin/ldconfig -r .
/opt/sbin/ldconfig -r .
}
# arg 1: the new package version
@ -13,7 +13,7 @@ post_upgrade() {
# arg 1: the old package version
pre_remove() {
/bin/true
/opt/bin/true
}
op=$1

View file

@ -1,4 +1,5 @@
# Maintainer: Alexander Foremny <alexanderforemny@gmail.com>
# Modified by OpenPogo
pkgname=patch
pkgver=2.5.9
@ -8,7 +9,7 @@ arch=('arm')
url="http://www.gnu.org/software/patch/patch.html"
license=('GPL')
groups=('base-devel')
depends=('glibc')
depends=()
optdepends=('ed: Interpret the patch as an ed script; for patch -e functionality(deprecated)')
source=(ftp://alpha.gnu.org/gnu/diffutils/$pkgname-$pkgver.tar.gz)
md5sums=('dacfb618082f8d3a2194601193cf8716')
@ -16,8 +17,7 @@ md5sums=('dacfb618082f8d3a2194601193cf8716')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
./configure --prefix=/usr --mandir=/usr/share/man
./configure --prefix=/opt --mandir=/opt/share/man
make || return 1
make prefix=${pkgdir}/usr mandir=${pkgdir}/usr/share/man install || return 1
make prefix=${pkgdir}/opt mandir=${pkgdir}/opt/share/man install || return 1
}

View file

@ -1,4 +1,5 @@
# Maintainer: Alexander Foremny <alexanderforemny@gmail.com>
# Modified by OpenPogo
pkgname=pcre
pkgver=7.9
@ -16,16 +17,10 @@ md5sums=('b6a9669d1863423f01ea46cdf00f93dc')
build() {
cd ${srcdir}/${pkgname}-${pkgver}
./configure --prefix=/usr \
./configure --prefix=/opt \
--enable-utf8 --enable-unicode-properties || return 1
make || return 1
make DESTDIR=${pkgdir} install || return 1
# grep uses pcre, so we need the libs in /lib
mkdir -p ${pkgdir}/lib
mv ${pkgdir}/usr/lib/libpcre.so.* ${pkgdir}/lib/ || return 1
ln -sf ../../lib/libpcre.so.0 ${pkgdir}/usr/lib/libpcre.so || return 1
install -D -m644 LICENCE \
${pkgdir}/usr/share/licenses/${pkgname}/LICENSE || return 1
${pkgdir}/opt/share/licenses/${pkgname}/LICENSE || return 1
}

View file

@ -1,6 +1,6 @@
# $Id: PKGBUILD 26545 2009-02-09 01:18:34Z kevin $
# Maintainer: Dale Blount <dale@archlinux.org>
# Contributor: Dale Blount <dale@archlinux.org>
# Modified by OpenPogo
pkgname=perl-error
_realname=Error
@ -20,9 +20,9 @@ build() {
# install module in vendor directories.
perl Makefile.PL INSTALLDIRS=vendor || return 1
make || return 1
make install DESTDIR=${startdir}/pkg || return 1
make install DESTDIR=${startdir}/pkg/opt || return 1
# remove perllocal.pod and .packlist
find ${startdir}/pkg -name perllocal.pod -delete
find ${startdir}/pkg -name .packlist -delete
find ${startdir}/pkg/opt -name perllocal.pod -delete
find ${startdir}/pkg/opt -name .packlist -delete
}

View file

@ -1,4 +1,6 @@
# Maintainer: Krzysztof "hiciu" Warzecha <kwarzecha7@gmail.com>
# Modified by OpenPogo
pkgname=perl
pkgver=5.10.0
pkgrel=1
@ -7,13 +9,13 @@ arch=(arm)
license=('GPL' 'PerlArtistic')
url="http://www.perl.org"
groups=('base')
depends=('gdbm' 'db>=4.7' 'coreutils' 'glibc' 'sh')
depends=('gdbm' 'db>=4.7' 'coreutils')
# for site_perl this is needed!
#test without options=('emptydirs')
source=(http://www.perl.com/CPAN/src/perl-${pkgver}.tar.gz
# http://search.cpan.org/CPAN/authors/id/P/PM/PMQS/DB_File-1.814.tar.gz
perlbin.sh perl-5.8.6-picdl.patch0
perl-5.10.0-archlinux-inc-order.patch)
perlbin.sh
perl-5.8.6-picdl.patch0
perl-5.10.0-archlinux-inc-order.patch)
install=perl.install
provides=(
# extra
@ -30,9 +32,9 @@ perl-module-load-conditional perl-module-loaded perl-module-pluggable
perl-object-accessor perl-params-check perl-term-ui perl-time-piece
)
md5sums=('d2c39b002ebfd2c3c5dba589365c5a71'
'9c4e3e56d71f123e92a68986df5ea924'
'aef9f8c6b0434a948ac2e6264b531f3e'
'319b56a7ce715fb7a494fe4d5cb9474c'
'0e4853bd75ee36b8f4c70b78c707b2fa')
'd19d97ea51dd74d646b7ab774e36c223')
build() {
cd ${startdir}/src/${pkgname}-${pkgver}
@ -48,18 +50,18 @@ build() {
patch -Np0 -i ../perl-5.10.0-archlinux-inc-order.patch
arch_opts=""
./Configure -des -Dusethreads -Doptimize="${CFLAGS}" -Dprefix=/usr \
-Dinstallprefix=${startdir}/pkg/usr -Dvendorprefix=/usr \
-Dprivlib=/usr/share/perl5/core_perl \
-Darchlib=/usr/lib/perl5/core_perl \
-Dsitelib=/usr/share/perl5/site_perl/${pkgver} \
-Dsitearch=/usr/lib/perl5/site_perl/${pkgver} \
-Dvendorlib=/usr/share/perl5/vendor_perl \
-Dvendorarch=/usr/lib/perl5/vendor_perl \
-Dotherlibdirs=/usr/lib/perl5/current:/usr/lib/perl5/site_perl/current \
-Dscriptdir='/usr/bin/perlbin/core' \
-Dsitescript='/usr/bin/perlbin/site' \
-Dvendorscript='/usr/bin/perlbin/vendor' \
./Configure -des -Dusethreads -Doptimize="${CFLAGS}" -Dprefix=/opt \
-Dinstallprefix=${startdir}/pkg/opt -Dvendorprefix=/opt \
-Dprivlib=/opt/share/perl5/core_perl \
-Darchlib=/opt/lib/perl5/core_perl \
-Dsitelib=/opt/share/perl5/site_perl/${pkgver} \
-Dsitearch=/opt/lib/perl5/site_perl/${pkgver} \
-Dvendorlib=/opt/share/perl5/vendor_perl \
-Dvendorarch=/opt/lib/perl5/vendor_perl \
-Dotherlibdirs=/opt/lib/perl5/current:/opt/lib/perl5/site_perl/current \
-Dscriptdir='/opt/bin/perlbin/core' \
-Dsitescript='/opt/bin/perlbin/site' \
-Dvendorscript='/opt/bin/perlbin/vendor' \
-Dman1ext=1perl -Dman3ext=3perl ${arch_opts}
make || return 1
@ -68,28 +70,27 @@ build() {
### Perl Settings ###
# Change man page extensions for site and vendor module builds.
sed -e '/^man1ext=/ s/1perl/1p/' -e '/^man3ext=/ s/3perl/3pm/' \
-i ${startdir}/pkg/usr/lib/perl5/core_perl/Config_heavy.pl
-i ${startdir}/pkg/opt/lib/perl5/core_perl/Config_heavy.pl
### CPAN Settings ###
# Set CPAN default config to use the site directories.
sed -e '/(makepl_arg =>/ s/""/"INSTALLDIRS=site"/' \
-e '/(mbuildpl_arg =>/ s/""/"installdirs=site"/' \
-i ${startdir}/pkg/usr/share/perl5/core_perl/CPAN/FirstTime.pm
-i ${startdir}/pkg/opt/share/perl5/core_perl/CPAN/FirstTime.pm
### CPANPLUS Settings ###
# Set CPANPLUS default config to use the site directories.
sed -e "/{'makemakerflags'}/ s/'';/'INSTALLDIRS=site';/" \
-e "/{'buildflags'}/ s/'';/'installdirs=site';/" \
-i ${startdir}/pkg/usr/share/perl5/core_perl/CPANPLUS/Config.pm
-i ${startdir}/pkg/opt/share/perl5/core_perl/CPANPLUS/Config.pm
# Profile script so set paths to perl scripts.
install -D -m755 ${startdir}/src/perlbin.sh \
${startdir}/pkg/etc/profile.d/perlbin.sh
${startdir}/pkg/opt/etc/profile.d/perlbin.sh
(cd ${startdir}/pkg/usr/bin; mv perl${pkgver} perl)
(cd ${startdir}/pkg/usr/bin/perlbin/core; \
(cd ${startdir}/pkg/opt/bin; mv perl${pkgver} perl)
(cd ${startdir}/pkg/opt/bin/perlbin/core; \
ln -sf c2ph pstruct; ln -sf s2p psed)
grep -Rl "${startdir}/pkg" ${startdir}/pkg/usr | \
grep -Rl "${startdir}/pkg" ${startdir}/pkg/opt | \
xargs sed -i "s^${startdir}/pkg^^g"
}

View file

@ -47,7 +47,7 @@ Thanks to Charles Mauch (xterminus) for his work on the initial patch.
- incpush(":", FALSE, FALSE, TRUE, FALSE);
-#else
-#ifndef PRIVLIB_EXP
-# define PRIVLIB_EXP "/usr/local/lib/perl5:/usr/local/lib/perl"
-# define PRIVLIB_EXP "/opt/local/lib/perl5:/opt/local/lib/perl"
-#endif
-#if defined(WIN32)
- incpush(PRIVLIB_EXP, TRUE, FALSE, TRUE, TRUE);
@ -88,7 +88,7 @@ Thanks to Charles Mauch (xterminus) for his work on the initial patch.
+ incpush(":", FALSE, FALSE, TRUE, FALSE);
+#else
+#ifndef PRIVLIB_EXP
+# define PRIVLIB_EXP "/usr/local/lib/perl5:/usr/local/lib/perl"
+# define PRIVLIB_EXP "/opt/local/lib/perl5:/opt/local/lib/perl"
+#endif
+#if defined(WIN32)
+ incpush(PRIVLIB_EXP, TRUE, FALSE, TRUE, TRUE);

View file

@ -1,9 +1,9 @@
# arg 1: the new package version
post_install() {
for ver in 5.8.{0,1,2,3,4,5,6,7,8}; do
[ -h usr/lib/perl5/$ver ] && rm usr/lib/perl5/$ver
[ -h usr/lib/perl5/site_perl/$ver ] && rm usr/lib/perl5/site_perl/$ver
[ -h usr/bin/perl$ver ] && rm usr/bin/perl$ver
[ -h opt/lib/perl5/$ver ] && rm opt/lib/perl5/$ver
[ -h opt/lib/perl5/site_perl/$ver ] && rm opt/lib/perl5/site_perl/$ver
[ -h opt/bin/perl$ver ] && rm opt/bin/perl$ver
done
echo

View file

@ -1,2 +1,2 @@
# Set path to perl scripts.
export PATH="${PATH}:/usr/bin/perlbin/site:/usr/bin/perlbin/vendor:/usr/bin/perlbin/core"
export PATH="${PATH}:/opt/bin/perlbin/site:/opt/bin/perlbin/vendor:/opt/bin/perlbin/core"

View file

@ -1,7 +1,7 @@
# Maintainer: Krzysztof "hiciu" Warzecha <kwarzecha7@gmail.com>
# $Id: PKGBUILD 1407 2008-05-07 22:55:37Z andyrtr $
# Maintainer: dorphell <dorphell@archlinux.org>
# Committer: Judd Vinet <jvinet@zeroflux.org>
# Modified by OpenPogo
pkgname=pkgconfig
pkgver=0.23
@ -11,13 +11,13 @@ arch=(arm)
url="http://pkgconfig.freedesktop.org/wiki/"
license=('GPL')
groups=('base-devel')
depends=(glibc)
depends=()
source=(http://pkgconfig.freedesktop.org/releases/pkg-config-${pkgver}.tar.gz)
md5sums=('d922a88782b64441d06547632fd85744')
build() {
cd ${startdir}/src/pkg-config-${pkgver}
./configure --prefix=/usr
./configure --prefix=/opt
make || return 1
make DESTDIR=${startdir}/pkg install
}

View file

@ -1,6 +1,7 @@
# Maintainer: Alexander Foremny <alexanderforemny@gmail.com>
# Maintainer: Allan McRae <allan@archlinux.org>
# Contributor: ezzetabi <ezzetabi at gawab dot com>
# Modified by OpenPogo
pkgname=ppl
pkgver=0.10.2
@ -17,9 +18,7 @@ md5sums=('e7dd265afdeaea81f7e87a72b182d875')
build() {
cd $srcdir/ppl-$pkgver
./configure --prefix=/usr --enable-interfaces="c,cxx" || return 1
./configure --prefix=/opt --enable-interfaces="c,cxx" || return 1
make || return 1
make DESTDIR=$pkgdir install || return 1
}
# vim: set ft=sh ts=2 sw=2 et:

View file

@ -1,10 +0,0 @@
2009-05-12 Eric Belanger <eric@archlinux.org>
* procps 3.2.8-1
* Upstream update
* Fixed license
2008-10-19 Eric Belanger <eric@archlinux.org>
* Updated url
* Added ChangeLog

View file

@ -1,7 +1,7 @@
# $Id: PKGBUILD 39239 2009-05-14 06:04:46Z eric $
# Maintainer: Krzysztof "hiciu" Warzecha <kwarzecha7@gmail.com>
# Archlinux's Maintainer: Eric Belanger <eric@archlinux.org>
# Contributor: judd <jvinet@zeroflux.org>
# Modified by OpenPogo
pkgname=procps
pkgver=3.2.8
@ -12,17 +12,22 @@ url="http://procps.sourceforge.net/"
license=('GPL' 'LGPL')
groups=('base')
depends=('ncurses')
backup=('etc/sysctl.conf')
source=(http://procps.sourceforge.net/procps-${pkgver}.tar.gz sysctl.conf)
md5sums=('9532714b6846013ca9898984ba4cd7e0' '9be3a131a7068aae11418e6dd99e2221')
sha1sums=('a0c86790569dec26b5d9037e8868ca907acc9829' '9b9a314010d042b5aa487893c06f361531525e6a')
backup=('opt/etc/sysctl.conf')
source=('http://procps.sourceforge.net/procps-${pkgver}.tar.gz'
'sysctl.conf'
'Makefile')
md5sums=('9532714b6846013ca9898984ba4cd7e0'
'9be3a131a7068aae11418e6dd99e2221'
'830f6ad2d76acb028621ecc3d0f9300a')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
rm Makefile
cp $srcdir/Makefile .
sed -i "s:\$(lib64):lib:" Makefile || return 1
make || return 1
make DESTDIR="${pkgdir}" ldconfig=/bin/true install || return 1
install -D -m644 "${srcdir}/sysctl.conf" "${pkgdir}/etc/sysctl.conf" || return 1
install -d "${pkgdir}/usr/include/proc" || return 1
install -m644 proc/*.h "${pkgdir}/usr/include/proc" || return 1
make DESTDIR="${pkgdir}/opt" ldconfig=/bin/true install || return 1
install -D -m644 "${srcdir}/sysctl.conf" "${pkgdir}/opt/etc/sysctl.conf" || return 1
install -d "${pkgdir}/opt/include/proc" || return 1
install -m644 proc/*.h "${pkgdir}/opt/include/proc" || return 1
}

View file

@ -1,4 +1,5 @@
# Maintainer: Alexander Foremny <alexanderforemny@gmail.com>
# Modified by OpenPogo
pkgname=readline
pkgver=6.0
@ -8,27 +9,26 @@ arch=(arm)
url="http://tiswww.case.edu/php/chet/readline/rltop.html"
license=('GPL')
groups=('base')
depends=('glibc' 'ncurses')
backup=("etc/inputrc")
depends=('ncurses')
backup=("opt/etc/inputrc")
source=( http://www.sfr-fresh.com/unix/misc/readline-${pkgver}.tar.gz
inputrc)
inputrc)
md5sums=('b7f65a48add447693be6e86f04a63019'
'e5fc955f56d9fa5beb871f3279b8fa8b')
build() {
cd $srcdir/readline-${pkgver}
./configure --prefix=/usr \
--mandir=/usr/share/man --infodir=/usr/share/info || return 1
./configure --prefix=/opt \
--mandir=/opt/share/man --infodir=/opt/share/info || return 1
make SHLIB_LIBS=-lncurses || return 1
make DESTDIR=${startdir}/pkg install || return 1
mkdir -p ${startdir}/pkg/etc
install -m644 ../inputrc ${startdir}/pkg/etc/inputrc || return 1
mkdir -p ${startdir}/pkg/opt/etc
install -m644 ../inputrc ${startdir}/pkg/opt/etc/inputrc || return 1
cd ${startdir}/pkg
mkdir -pv lib
mv -v usr/lib/lib{readline,history}.so.6* lib/ || return 1
ln -svf ../../lib/libreadline.so.5 usr/lib/libreadline.so || return 1
ln -svf ../../lib/libhistory.so.5 usr/lib/libhistory.so || return 1
# cd ${startdir}/pkg
# mkdir -pv lib
# mv -v usr/lib/lib{readline,history}.so.6* lib/ || return 1
# ln -svf ../../lib/libreadline.so.5 usr/lib/libreadline.so || return 1
# ln -svf ../../lib/libhistory.so.5 usr/lib/libhistory.so || return 1
}

View file

@ -1,4 +1,5 @@
# Maintainer: Alexander Foremny <alexanderforemny@gmail.com>
# Modified by OpenPogo
pkgname=rsync
pkgver=3.0.6
@ -9,21 +10,27 @@ arch=('arm')
url="http://samba.anu.edu.au/rsync/"
license=('GPL3')
depends=('acl')
backup=('etc/rsyncd.conf' 'etc/xinetd.d/rsync')
source=(http://rsync.samba.org/ftp/rsync/${pkgname}-${pkgver}.tar.gz \
rsyncd.conf rsyncd rsync.xinetd)
backup=('opt/etc/rsyncd.conf'
'opt/etc/xinetd.d/rsync')
source=('http://rsync.samba.org/ftp/rsync/rsync-3.0.6.tar.gz'
'rsyncd.conf'
'rsyncd'
'rsync.xinetd')
md5sums=('e9865d093a18e4668b9d31b635dc8e99'
'aeb04786ee7cba9221a8eca7279cdfcb'
'64ec3de7539d07be2ee6f6339cd23ae4'
'c9627d35fa175cf84565f46602c21e98')
build() {
cd ${srcdir}/rsync-${pkgver}
./prepare-source || return 1
./configure --prefix=/usr --with-included-popt \
./configure --prefix=/opt --with-included-popt \
--enable-acl-support --enable-xattr-support || return 1
make || return 1
make DESTDIR=${pkgdir} install || return 1
install -D -m 755 ../rsyncd ${pkgdir}/etc/rc.d/rsyncd || return 1
install -D -m 644 ../rsyncd.conf ${pkgdir}/etc/rsyncd.conf || return 1
install -D -m 644 ../rsync.xinetd ${pkgdir}/etc/xinetd.d/rsync || return 1
install -D -m 755 ../rsyncd ${pkgdir}/opt/etc/rc.d/rsyncd || return 1
install -D -m 644 ../rsyncd.conf ${pkgdir}/opt/etc/rsyncd.conf || return 1
install -D -m 644 ../rsync.xinetd ${pkgdir}/opt/etc/xinetd.d/rsync || return 1
}

View file

@ -3,7 +3,7 @@ service rsync
socket_type = stream
wait = no
user = root
server = /usr/bin/rsync
server = /opt/bin/rsync
server_args = --daemon
log_on_success += HOST DURATION
log_on_failure += HOST

View file

@ -1,16 +1,16 @@
#!/bin/bash
. /etc/rc.conf
. /etc/rc.d/functions
. /opt/etc/rc.conf
. /opt/etc/rc.d/functions
case "$1" in
start)
stat_busy "Starting rsyncd"
[ ! -f /var/run/daemons/rsyncd ] && /usr/bin/rsync --daemon
[ ! -f /opt/var/run/daemons/rsyncd ] && /opt/bin/rsync --daemon
if [ $? -gt 0 ]; then
stat_fail
else
pgrep -of "/usr/bin/rsync --daemon" > /var/run/rsyncd.pid
pgrep -of "/opt/bin/rsync --daemon" > /opt/var/run/rsyncd.pid
add_daemon rsyncd
stat_done
fi
@ -18,7 +18,7 @@ case "$1" in
stop)
stat_busy "Stopping rsyncd"
[ -f /var/run/rsyncd.pid ] && kill `cat /var/run/rsyncd.pid`
[ -f /opt/var/run/rsyncd.pid ] && kill `cat /opt/var/run/rsyncd.pid`
if [ $? -gt 0 ]; then
stat_fail
else

View file

@ -3,7 +3,7 @@ gid = nobody
use chroot = no
max connections = 4
syslog facility = local5
pid file = /var/run/rsyncd.pid
pid file = /opt/var/run/rsyncd.pid
[ftp]
path = /home/ftp

View file

@ -1,4 +1,5 @@
# Maintainer: Manuel Rotter <rotter.manuel@gmail.com>
# Modified by OpenPogo
pkgname=run-parts
pkgver=3.1.3
@ -7,14 +8,14 @@ pkgdesc='run-parts from the debianutils package'
arch=('arm')
url='http://packages.qa.debian.org/d/debianutils.html'
license=('GPL')
depends=('glibc')
source=("http://ftp.debian.org/debian/pool/main/d/debianutils/debianutils_${pkgver}.tar.gz")
depends=()
source=("https://launchpad.net/ubuntu/intrepid/+source/debianutils/3.1.3/+files/debianutils_3.1.3.tar.gz")
md5sums=('42c759ff41851313bb0b9c419598c04c')
build() {
cd $srcdir/debianutils-$pkgver
./configure --prefix=/usr
./configure --prefix=/opt
make
install -D -m755 run-parts $pkgdir/usr/bin/run-parts
install -D -m755 run-parts $pkgdir/opt/bin/run-parts
}

View file

@ -1,4 +1,6 @@
# Maintainer: Philipp Scholl <pscholl@bawue.de>
# Modified by OpenPogo
pkgname=sed
pkgver=4.1.5
pkgrel=1
@ -7,7 +9,7 @@ arch=(arm)
url="http://www.gnu.org/software/sed"
license=('GPL')
groups=('base')
depends=('glibc')
depends=()
source=(ftp://ftp.gnu.org/pub/gnu/sed/$pkgname-$pkgver.tar.gz)
md5sums=('7a1cbbbb3341287308e140bd4834c3ba')
@ -15,6 +17,6 @@ build() {
cd $startdir/src/$pkgname-$pkgver
./configure --prefix=
make || return 1
make prefix=$startdir/pkg/usr install
mv $startdir/pkg/usr/bin $startdir/pkg/
make prefix=$startdir/pkg/opt install
# mv $startdir/pkg/opt/bin $startdir/pkg/
}

View file

@ -1,84 +0,0 @@
# Maintainer: Philipp Scholl <pscholl@bawue.de>
pkgname=shadow
pkgver=4.1.2.1
pkgrel=2
pkgdesc="Shadow password file utilities"
arch=(arm)
url='http://pkg-shadow.alioth.debian.org/'
license=('custom')
groups=('base')
backup=(etc/login.defs
etc/pam.d/{chage,login,passwd,shadow,useradd,usermod,userdel}
etc/pam.d/{chpasswd,newusers,groupadd,groupdel,groupmod}
etc/pam.d/{chfn,chgpasswd,groupmems,chsh}
etc/default/useradd)
depends=('pam')
source=(ftp://pkg-shadow.alioth.debian.org/pub/pkg-shadow/shadow-$pkgver.tar.bz2
useradd.defaults login passwd defaults.pam login.defs adduser shadow.cron.daily
xstrdup.patch)
options=(!libtool)
install='shadow.install'
md5sums=('c178e49c45495e296dabbe4ae01a0fbe'
'beb64d09256ea46a4d96a783f096447f'
'0aa429de6773ebcdf89db80165379cc6'
'b84204ab731bd02dca49d0637d44ebec'
'a31374fef2cba0ca34dfc7078e2969e4'
'3699bed31154051c0508a890d6d95027'
'6ce67e423ee19c87ae64f661310b2408'
'1d64b4113e1d402746d9dd65f28a2c6f'
'0eebe9d13065bec4b5d7ccf3bf46c509')
build() {
cd $startdir/src/$pkgname-$pkgver
#Ugh, force this to build shared libraries, for god's sake
sed -i "s/noinst_LTLIBRARIES/lib_LTLIBRARIES/g" lib/Makefile.am
libtoolize
autoreconf
export LDFLAGS="$LDFLAGS -lcrypt"
patch -Np1 -i $startdir/src/xstrdup.patch || return 1
# supress etc/pam.d/*, we provide our own
sed -i '/^SUBDIRS/s/pam.d//' etc/Makefile.in
./configure \
--prefix=/usr --libdir=/lib \
--mandir=/usr/share/man --sysconfdir=/etc \
--enable-shared --disable-static \
--with-libpam --without-selinux
make || return 1
make DESTDIR=$startdir/pkg install
# license
install -D -m644 COPYING $startdir/pkg/usr/share/licenses/shadow/COPYING
# interactive useradd
install -D -m755 $startdir/src/adduser $startdir/pkg/usr/sbin/adduser
# useradd defaults
install -D -m644 $startdir/src/useradd.defaults $startdir/pkg/etc/default/useradd
# cron job
install -D -m744 $startdir/src/shadow.cron.daily $startdir/pkg/etc/cron.daily/shadow
# login.defs
install -D -m644 $startdir/src/login.defs $startdir/pkg/etc/login.defs
# PAM config - cutsom
install -D -m644 $startdir/src/login $startdir/pkg/etc/pam.d/login
install -D -m644 $startdir/src/passwd $startdir/pkg/etc/pam.d/passwd
# PAM config - from tarball
install -D -m644 etc/pam.d/chgpasswd $startdir/pkg/etc/pam.d/chgpasswd
install -D -m644 etc/pam.d/groupmems $startdir/pkg/etc/pam.d/groupmems
# we use the 'useradd' PAM file for other similar utilities
for file in chage chpasswd chfn chsh groupadd groupdel groupmod \
newusers shadow useradd usermod userdel; do
install -D -m644 $startdir/src/defaults.pam $startdir/pkg/etc/pam.d/$file
done
# Remove su - using su from coreutils instead
rm -v $startdir/pkg/bin/su
find $startdir/pkg/usr/share/man -name 'su.1' -exec rm -v {} \;
}

View file

@ -1,399 +0,0 @@
#!/bin/bash
#
# Copyright 1995 Hrvoje Dogan, Croatia.
# Copyright 2002, 2003, 2004 Stuart Winter, West Midlands, England, UK.
# Copyright 2004 Slackware Linux, Inc., Concord, CA, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
# permitted provided that the following conditions are met:
#
# 1. Redistributions of this script must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
#
##########################################################################
# Program: /usr/sbin/adduser
# Purpose: Interactive front end to /usr/sbin/useradd for Slackware Linux
# Author : Stuart Winter <stuart@polplex.co.uk>
# Based on the original Slackware adduser by Hrvoje Dogan
# with modifications by Patrick Volkerding
# Version: 1.09
##########################################################################
# Usage..: adduser [<new_user_name>]
##########################################################################
# History #
###########
# v1.09 - 07/06/04
# * Added standard Slackware script licence to the head of this file.
# v1.08 - 25/04/04
# * Disallow user names that begin with a numeric because useradd
# (from shadow v4.03) does not allow them. <sw>
# v1.07 - 07/03/03
# * When supplying a null string for the uid (meaning 'Choose next available'),
# if there were file names in the range 'a-z' in the pwd then the
# egrep command considered these files rather than the null string.
# The egrep expression is now in quotes.
# Reported & fixed by Vadim O. Ustiansky <sw>
# v1.06 - 31/03/03
# * Ask to chown user.group the home directory if it already exists.
# This helps reduce later confusion when adding users whose home dir
# already exists (mounted partition for example) and is owned
# by a user other than the user to which the directory is being
# assigned as home. Default is not to chown.
# Brought to my attention by mRgOBLIN. <sw>
# v1.05 - 04/01/03
# * Advise & prevent users from creating logins with '.' characters
# in the user name. <sw>
# * Made pending account creation info look neater <sw>
# v1.04 - 09/06/02
# * Catered for shadow-4.0.3's 'useradd' binary that no longer
# will let you create a user that has any uppercase chars in it
# This was reported on the userlocal.org forums
# by 'xcp' - thanks. <sw,pjv>
# v1.03 - 20/05/02
# * Support 'broken' (null lines in) /etc/passwd and
# /etc/group files <sw>
# * For recycling UIDs (default still 'off'), we now look in
# /etc/login.defs for the UID_MIN value and use it
# If not found then default to 1000 <sw>
# v1.02 - 10/04/02
# * Fix user-specified UID bug. <pjv>
# v1.01 - 23/03/02
# * Match Slackware indenting style, simplify. <pjv>
# v1.00 - 22/03/02
# * Created
#######################################################################
# Path to files
pfile=/etc/passwd
gfile=/etc/group
sfile=/etc/shells
# Paths to binaries
useradd=/usr/sbin/useradd
chfn=/usr/bin/chfn
passwd=/usr/bin/passwd
# Defaults
defhome=/home
defshell=/bin/bash
defgroup=users
# Determine what the minimum UID is (for UID recycling)
# (we ignore it if it's not at the beginning of the line (i.e. commented out with #))
export recycleUIDMIN="$(grep ^UID_MIN /etc/login.defs | awk '{print $2}' 2>/dev/null)"
# If we couldn't find it, set it to the default of 1000
if [ -z "$recycleUIDMIN" ]; then
export recycleUIDMIN=1000 # this is the default from Slackware's /etc/login.defs
fi
# This setting enables the 'recycling' of older unused UIDs.
# When you userdel a user, it removes it from passwd and shadow but it will
# never get used again unless you specify it expliticly -- useradd (appears to) just
# look at the last line in passwd and increment the uid. I like the idea of
# recycling uids but you may have very good reasons not to (old forgotten
# confidential files still on the system could then be owned by this new user).
# We'll set this to no because this is what the original adduser shell script
# did and it's what users expect.
recycleuids=no
# Function to read keyboard input.
# bash1 is broken (even ash will take read -ep!), so we work around
# it (even though bash1 is no longer supported on Slackware).
function get_input() {
local output
if [ "`echo $BASH_VERSION | cut -b1`" = "1" ]; then
echo -n "${1} " >&2 # fudge for use with bash v1
read output
else # this should work with any other /bin/sh
read -ep "${1} " output
fi
echo $output
}
# Function to display the account info
function display () {
local goose
goose="$(echo $2 | cut -d ' ' -f 2-)" # lop off the prefixed argument useradd needs
echo -n "$1 "
# If it's null then display the 'other' information
if [ -z "$goose" -a ! -z "$3" ]; then
echo "$3"
else
echo "$goose"
fi
}
# Function to check whether groups exist in the /etc/group file
function check_group () {
local got_error group
if [ ! -z "$@" ]; then
for group in $@ ; do
local uid_not_named="" uid_not_num=""
grep -v "$^" $gfile | awk -F: '{print $1}' | grep "^${group}$" >/dev/null 2>&1 || uid_not_named=yes
grep -v "$^" $gfile | awk -F: '{print $3}' | grep "^${group}$" >/dev/null 2>&1 || uid_not_num=yes
if [ ! -z "$uid_not_named" -a ! -z "$uid_not_num" ]; then
echo "- Group '$group' does not exist"
got_error=yes
fi
done
fi
# Return exit code of 1 if at least one of the groups didn't exist
if [ ! -z "$got_error" ]; then
return 1
fi
}
#: Read the login name for the new user :#
#
# Remember that most Mail Transfer Agents are case independant, so having
# 'uSer' and 'user' may cause confusion/things to break. Because of this,
# useradd from shadow-4.0.3 no longer accepts usernames containing uppercase,
# and we must reject them, too.
# Set the login variable to the command line param
echo
LOGIN="$1"
needinput=yes
while [ ! -z $needinput ]; do
if [ -z "$LOGIN" ]; then
while [ -z "$LOGIN" ]; do LOGIN="$(get_input "Login name for new user []:")" ; done
fi
grep "^${LOGIN}:" $pfile >/dev/null 2>&1 # ensure it's not already used
if [ $? -eq 0 ]; then
echo "- User '$LOGIN' already exists; please choose another"
unset LOGIN
elif [ ! -z "$( echo $LOGIN | grep "^[0-9]" )" ]; then
echo "- User names cannot begin with a number; please choose another"
unset LOGIN
elif [ ! "$LOGIN" = "`echo $LOGIN | tr A-Z a-z`" ]; then # useradd does not allow uppercase
echo "- User '$LOGIN' contains illegal characters (uppercase); please choose another"
unset LOGIN
elif [ ! -z "$( echo $LOGIN | grep '\.' )" ]; then
echo "- User '$LOGIN' contains illegal characters (period/dot); please choose another"
unset LOGIN
else
unset needinput
fi
done
# Display the user name passed from the shell if it hasn't changed
if [ "$1" = "$LOGIN" ]; then
echo "Login name for new user: $LOGIN"
fi
#: Get the UID for the user & ensure it's not already in use :#
#
# Whilst we _can_ allow users with identical UIDs, it's not a 'good thing' because
# when you change password for the uid, it finds the first match in /etc/passwd
# which isn't necessarily the correct user
#
echo
needinput=yes
while [ ! -z "$needinput" ]; do
_UID="$(get_input "User ID ('UID') [ defaults to next available ]:")"
grep -v "^$" $pfile | awk -F: '{print $3}' | grep "^${_UID}$" >/dev/null 2>&1
if [ $? -eq 0 ]; then
echo "- That UID is already in use; please choose another"
elif [ ! -z "$(echo $_UID | egrep '[A-Za-z]')" ]; then
echo "- UIDs are numerics only"
else
unset needinput
fi
done
# If we were given a UID, then syntax up the variable to pass to useradd
if [ ! -z "$_UID" ]; then
U_ID="-u ${_UID}"
else
# Will we be recycling UIDs?
if [ "$recycleuids" = "yes" ]; then
U_ID="-u $(awk -F: '{uid[$3]=1} END { for (i=ENVIRON["recycleUIDMIN"];i in uid;i++);print i}' $pfile)"
fi
fi
#: Get the initial group for the user & ensure it exists :#
#
# We check /etc/group for both the text version and the group ID number
echo
needinput=yes
while [ ! -z "$needinput" ]; do
GID="$(get_input "Initial group [ ${defgroup} ]:")"
check_group "$GID"
if [ $? -gt 0 ]; then
echo "- Please choose another"
else
unset needinput
fi
done
# Syntax the variable ready for useradd
if [ -z "$GID" ]; then
GID="-g ${defgroup}"
else
GID="-g ${GID}"
fi
#: Get additional groups for the user :#
#
echo
needinput=yes
while [ ! -z "$needinput" ]; do
AGID="$(get_input "Additional groups (comma separated) []:")"
AGID="$(echo "$AGID" | tr -d ' ' | tr , ' ')" # fix up for parsing
if [ ! -z "$AGID" ]; then
check_group "$AGID" # check all groups at once (treated as N # of params)
if [ $? -gt 0 ]; then
echo "- Please re-enter the group(s)"
else
unset needinput # we found all groups specified
AGID="-G $(echo "$AGID" | tr ' ' ,)"
fi
else
unset needinput # we don't *have* to have additional groups
fi
done
#: Get the new user's home dir :#
#
echo
needinput=yes
while [ ! -z "$needinput" ]; do
HME="$(get_input "Home directory [ ${defhome}/${LOGIN} ]")"
if [ -z "$HME" ]; then
HME="${defhome}/${LOGIN}"
fi
# Warn the user if the home dir already exists
if [ -d "$HME" ]; then
echo "- Warning: '$HME' already exists !"
getyn="$(get_input " Do you wish to change the home directory path ? (Y/n) ")"
if [ "$(echo $getyn | grep -i "n")" ]; then
unset needinput
# You're most likely going to only do this if you have the dir *mounted* for this user's $HOME
getyn="$(get_input " Do you want to chown $LOGIN.$( echo $GID | awk '{print $2}') $HME ? (y/N) ")"
if [ "$(echo $getyn | grep -i "y")" ]; then
CHOWNHOMEDIR=$HME # set this to the home directory
fi
fi
else
unset needinput
fi
done
HME="-d ${HME}"
#: Get the new user's shell :#
echo
needinput=yes
while [ ! -z "$needinput" ]; do
unset got_error
SHL="$(get_input "Shell [ ${defshell} ]")"
if [ -z "$SHL" ]; then
SHL="${defshell}"
fi
# Warn the user if the shell doesn't exist in /etc/shells or as a file
if [ -z "$(grep "^${SHL}$" $sfile)" ]; then
echo "- Warning: ${SHL} is not in ${sfile} (potential problem using FTP)"
got_error=yes
fi
if [ ! -f "$SHL" ]; then
echo "- Warning: ${SHL} does not exist as a file"
got_error=yes
fi
if [ ! -z "$got_error" ]; then
getyn="$(get_input " Do you wish to change the shell ? (Y/n) ")"
if [ "$(echo $getyn | grep -i "n")" ]; then
unset needinput
fi
else
unset needinput
fi
done
SHL="-s ${SHL}"
#: Get the expiry date :#
echo
needinput=yes
while [ ! -z "$needinput" ]; do
EXP="$(get_input "Expiry date (YYYY-MM-DD) []:")"
if [ ! -z "$EXP" ]; then
# Check to see whether the expiry date is in the valid format
if [ -z "$(echo "$EXP" | grep "^[[:digit:]]\{4\}[-]\?[[:digit:]]\{2\}[-]\?[[:digit:]]\{2\}$")" ]; then
echo "- That is not a valid expiration date"
else
unset needinput
EXP="-e ${EXP}"
fi
else
unset needinput
fi
done
# Display the info about the new impending account
echo
echo "New account will be created as follows:"
echo
echo "---------------------------------------"
display "Login name.......: " "$LOGIN"
display "UID..............: " "$_UID" "[ Next available ]"
display "Initial group....: " "$GID"
display "Additional groups: " "$AGID" "[ None ]"
display "Home directory...: " "$HME"
display "Shell............: " "$SHL"
display "Expiry date......: " "$EXP" "[ Never ]"
echo
echo "This is it... if you want to bail out, hit Control-C. Otherwise, press"
echo "ENTER to go ahead and make the account."
read junk
echo
echo "Creating new account..."
echo
echo
# Add the account to the system
CMD="$useradd "$HME" -m "$EXP" "$U_ID" "$GID" "$AGID" "$SHL" "$LOGIN""
$CMD
if [ $? -gt 0 ]; then
echo "- Error running useradd command -- account not created!"
echo "(cmd: $CMD)"
exit 1
fi
# chown the home dir ? We can only do this once the useradd has
# completed otherwise the user name doesn't exist.
if [ ! -z "${CHOWNHOMEDIR}" ]; then
chown "$LOGIN"."$( echo $GID | awk '{print $2}')" "${CHOWNHOMEDIR}"
fi
# Set the finger information
$chfn "$LOGIN"
if [ $? -gt 0 ]; then
echo "- Warning: an error occurred while setting finger information"
fi
# Set a password
$passwd "$LOGIN"
if [ $? -gt 0 ]; then
echo "* WARNING: An error occured while setting the password for"
echo " this account. Please manually investigate this *"
exit 1
fi
echo
echo
echo "Account setup complete."
exit 0

View file

@ -1,6 +0,0 @@
#%PAM-1.0
auth sufficient pam_rootok.so
auth required pam_unix.so
account required pam_unix.so
session required pam_unix.so
password required pam_permit.so

View file

@ -1,6 +0,0 @@
#%PAM-1.0
auth sufficient pam_rootok.so
auth required pam_unix.so
account required pam_unix.so
session required pam_unix.so
password required pam_permit.so

View file

@ -1,6 +0,0 @@
#%PAM-1.0
auth sufficient pam_rootok.so
auth required pam_unix.so
account required pam_unix.so
session required pam_unix.so
password required pam_permit.so

View file

@ -1,18 +0,0 @@
#%PAM-1.0
auth required pam_securetty.so
auth requisite pam_nologin.so
auth required pam_unix.so nullok
auth required pam_tally.so onerr=succeed file=/var/log/faillog
# use this to lockout accounts for 10 minutes after 3 failed attempts
#auth required pam_tally.so deny=2 unlock_time=600 onerr=succeed file=/var/log/faillog
account required pam_access.so
account required pam_time.so
account required pam_unix.so
#password required pam_cracklib.so difok=2 minlen=8 dcredit=2 ocredit=2 retry=3
#password required pam_unix.so md5 shadow use_authtok
session required pam_unix.so
session required pam_env.so
session required pam_motd.so
session required pam_limits.so
session optional pam_mail.so dir=/var/spool/mail standard
session optional pam_lastlog.so

View file

@ -1,212 +0,0 @@
#
# /etc/login.defs - Configuration control definitions for the login package.
#
# Three items must be defined: MAIL_DIR, ENV_SUPATH, and ENV_PATH.
# If unspecified, some arbitrary (and possibly incorrect) value will
# be assumed. All other items are optional - if not specified then
# the described action or option will be inhibited.
#
# Comment lines (lines beginning with "#") and blank lines are ignored.
#
# Modified for Linux. --marekm
#
# Delay in seconds before being allowed another attempt after a login failure
#
FAIL_DELAY 3
#
# Enable display of unknown usernames when login failures are recorded.
#
LOG_UNKFAIL_ENAB no
#
# Enable logging of successful logins
#
LOG_OK_LOGINS no
#
# Enable "syslog" logging of su activity - in addition to sulog file logging.
# SYSLOG_SG_ENAB does the same for newgrp and sg.
#
SYSLOG_SU_ENAB yes
SYSLOG_SG_ENAB yes
#
# If defined, either full pathname of a file containing device names or
# a ":" delimited list of device names. Root logins will be allowed only
# upon these devices.
#
CONSOLE /etc/securetty
#CONSOLE console:tty01:tty02:tty03:tty04
#
# If defined, all su activity is logged to this file.
#
#SULOG_FILE /var/log/sulog
#
# If defined, file which maps tty line to TERM environment parameter.
# Each line of the file is in a format something like "vt100 tty01".
#
#TTYTYPE_FILE /etc/ttytype
#
# If defined, the command name to display when running "su -". For
# example, if this is defined as "su" then a "ps" will display the
# command is "-su". If not defined, then "ps" would display the
# name of the shell actually being run, e.g. something like "-sh".
#
SU_NAME su
#
# *REQUIRED*
# Directory where mailboxes reside, _or_ name of file, relative to the
# home directory. If you _do_ define both, MAIL_DIR takes precedence.
# QMAIL_DIR is for Qmail
#
#QMAIL_DIR Maildir
MAIL_DIR /var/spool/mail
#
# If defined, file which inhibits all the usual chatter during the login
# sequence. If a full pathname, then hushed mode will be enabled if the
# user's name or shell are found in the file. If not a full pathname, then
# hushed mode will be enabled if the file exists in the user's home directory.
#
HUSHLOGIN_FILE .hushlogin
#HUSHLOGIN_FILE /etc/hushlogins
#
# *REQUIRED* The default PATH settings, for superuser and normal users.
#
# (they are minimal, add the rest in the shell startup files)
ENV_SUPATH PATH=/sbin:/bin:/usr/sbin:/usr/bin
ENV_PATH PATH=/bin:/usr/bin
#
# Terminal permissions
#
# TTYGROUP Login tty will be assigned this group ownership.
# TTYPERM Login tty will be set to this permission.
#
# If you have a "write" program which is "setgid" to a special group
# which owns the terminals, define TTYGROUP to the group number and
# TTYPERM to 0620. Otherwise leave TTYGROUP commented out and assign
# TTYPERM to either 622 or 600.
#
TTYGROUP tty
TTYPERM 0600
#
# Login configuration initializations:
#
# ERASECHAR Terminal ERASE character ('\010' = backspace).
# KILLCHAR Terminal KILL character ('\025' = CTRL/U).
# UMASK Default "umask" value.
#
# The ERASECHAR and KILLCHAR are used only on System V machines.
# The ULIMIT is used only if the system supports it.
# (now it works with setrlimit too; ulimit is in 512-byte units)
#
# Prefix these values with "0" to get octal, "0x" to get hexadecimal.
#
ERASECHAR 0177
KILLCHAR 025
UMASK 077
#
# Password aging controls:
#
# PASS_MAX_DAYS Maximum number of days a password may be used.
# PASS_MIN_DAYS Minimum number of days allowed between password changes.
# PASS_WARN_AGE Number of days warning given before a password expires.
#
PASS_MAX_DAYS 99999
PASS_MIN_DAYS 0
PASS_WARN_AGE 7
#
# Min/max values for automatic uid selection in useradd
#
UID_MIN 1000
UID_MAX 60000
#
# Min/max values for automatic gid selection in groupadd
#
GID_MIN 100
GID_MAX 60000
#
# Max number of login retries if password is bad
#
LOGIN_RETRIES 5
#
# Max time in seconds for login
#
LOGIN_TIMEOUT 60
#
# Which fields may be changed by regular users using chfn - use
# any combination of letters "frwh" (full name, room number, work
# phone, home phone). If not defined, no changes are allowed.
# For backward compatibility, "yes" = "rwh" and "no" = "frwh".
#
CHFN_RESTRICT rwh
#
# List of groups to add to the user's supplementary group set
# when logging in on the console (as determined by the CONSOLE
# setting). Default is none.
#
# Use with caution - it is possible for users to gain permanent
# access to these groups, even when not logged in on the console.
# How to do it is left as an exercise for the reader...
#
#CONSOLE_GROUPS floppy:audio:cdrom
#
# Should login be allowed if we can't cd to the home directory?
# Default in no.
#
DEFAULT_HOME yes
#
# If defined, this command is run when removing a user.
# It should remove any at/cron/print jobs etc. owned by
# the user to be removed (passed as the first argument).
#
#USERDEL_CMD /usr/sbin/userdel_local
#
# When prompting for password without echo, getpass() can optionally
# display a random number (in the range 1 to GETPASS_ASTERISKS) of '*'
# characters for each character typed. This feature is designed to
# confuse people looking over your shoulder when you enter a password :-).
# Also, the new getpass() accepts both Backspace (8) and Delete (127)
# keys to delete previous character (to cope with different terminal
# types), Control-U to delete all characters, and beeps when there are
# no more characters to delete, or too many characters entered.
#
# Setting GETPASS_ASTERISKS to 1 results in more traditional behaviour -
# exactly one '*' displayed for each character typed.
#
# Setting GETPASS_ASTERISKS to 0 disables the '*' characters (Backspace,
# Delete, Control-U and beep continue to work as described above).
#
# Setting GETPASS_ASTERISKS to -1 reverts to the traditional getpass()
# without any new features. This is the default.
#
#GETPASS_ASTERISKS 1
#
# Enable setting of the umask group bits to be the same as owner bits
# (examples: 022 -> 002, 077 -> 007) for non-root users, if the uid is
# the same as gid, and username is the same as the primary group name.
#
# This also enables userdel to remove user groups if no members exist.
#
USERGROUPS_ENAB yes

View file

@ -1,4 +0,0 @@
#%PAM-1.0
#password required pam_cracklib.so difok=2 minlen=8 dcredit=2 ocredit=2 retry=3
#password required pam_unix.so md5 shadow use_authtok
password required pam_unix.so md5 shadow nullok

View file

@ -1,6 +0,0 @@
#%PAM-1.0
auth sufficient pam_rootok.so
auth required pam_unix.so
account required pam_unix.so
session required pam_unix.so
password required pam_permit.so

View file

@ -1,6 +0,0 @@
#!/bin/sh
# Verify integrity of password and group files
/usr/sbin/pwck -r
/usr/sbin/grpck -r

View file

@ -1,11 +0,0 @@
post_upgrade() {
# fix gshadow
if [ "$(grpck -r)" ]; then
echo "Fixing gshadow file ..."
while :; do echo "y"; done | grpck
fi
}
op=$1
shift
$op $*

View file

@ -1,9 +0,0 @@
# useradd defaults file for ArchLinux
# original changes by TomK
GROUP=100
HOME=/home
INACTIVE=-1
EXPIRE=
SHELL=/bin/bash
SKEL=/etc/skel
CREATE_MAIL_SPOOL=no

View file

@ -1,9 +0,0 @@
--- shadow-4.1.2.1/libmisc/xmalloc.c 2008-08-30 21:55:44.000000000 -0500
+++ shadow-4.1.2.1/libmisc/xmalloc.c.new 2008-08-30 21:55:36.000000000 -0500
@@ -61,5 +61,6 @@
char *xstrdup (const char *str)
{
+ if(str == NULL) return NULL;
return strcpy (xmalloc (strlen (str) + 1), str);
}

View file

@ -1,4 +1,6 @@
# Maintainer: Krzysztof "hiciu" Warzecha <kwarzecha7@gmail.com>
# Modified by OpenPogo
pkgname=sqlite3
pkgver=3.6.13
pkgrel=1
@ -10,8 +12,8 @@ depends=('readline')
makedepends=('tcl')
conflicts=('sqlite')
replaces=('sqlite')
source=(http://www.sqlite.org/sqlite-$pkgver.tar.gz
license.txt)
source=('http://www.sqlite.org/sqlite-3.6.13.tar.gz'
'license.txt')
options=(!libtool)
md5sums=('652a01797e7538811e4997a5847bc026'
'c1cdbc5544034d9012e421e75a5e4890')
@ -20,7 +22,7 @@ build() {
cd ${srcdir}/sqlite-${pkgver}
export LTLINK_EXTRAS="-ldl"
export CFLAGS="$CFLAGS -DSQLITE_ENABLE_FTS3=1 -DSQLITE_ENABLE_COLUMN_METADATA=1"
./configure --prefix=/usr \
./configure --prefix=/opt \
--enable-threadsafe \
--enable-threads-override-locks \
--enable-cross-thread-connections \
@ -28,8 +30,10 @@ build() {
--enable-load-extension || return 1
make || return 1
make DESTDIR=${pkgdir} install || return 1
install -Dm0644 sqlite3.1 ${pkgdir}/usr/share/man/man1/sqlite3.1
install -Dm0644 sqlite3.1 ${pkgdir}/opt/share/man/man1/sqlite3.1
mv ${pkgdir}/usr/lib/tcl8.5 ${pkgdir}/opt/lib/
rm -rf ${pkgdir}/usr
# license
install -Dm644 ${srcdir}/license.txt ${pkgdir}/usr/share/licenses/${pkgname}/license.txt
install -Dm644 ${srcdir}/license.txt ${pkgdir}/opt/share/licenses/${pkgname}/license.txt
}

View file

@ -1,4 +1,5 @@
# Maintainer: Manuel Rotter <rotter.manuel@gmail.com>
# Maintainer: Manuel Rotter <rotter.manuel@gmail.com>
# Modified by OpenPogo
pkgname=sudo
pkgver=1.7.2
@ -7,8 +8,8 @@ pkgdesc="Give certain users the ability to run some commands as root"
arch=(arm)
url="http://www.sudo.ws/sudo/"
license=('custom')
depends=('glibc' 'pam')
backup=('etc/sudoers' 'etc/pam.d/sudo')
depends=('pam')
backup=('opt/etc/sudoers' 'opt/etc/pam.d/sudo')
source=(ftp://ftp.sudo.ws/pub/sudo/$pkgname-$pkgver.tar.gz
sudo.pam)
options=('!libtool' '!makeflags')
@ -17,10 +18,12 @@ md5sums=('9caba8719c3e0f163880a05f02a48249'
build() {
cd $srcdir/$pkgname-$pkgver || return 1
./configure --prefix=/usr --with-pam --libexecdir=/usr/lib \
./configure --prefix=/opt --with-pam --libexecdir=/opt/lib \
--with-env-editor --with-all-insults --with-logfac=auth || return 1
make || return 1
make DESTDIR=$pkgdir install || return 1
install -Dm644 $srcdir/sudo.pam $pkgdir/etc/pam.d/sudo || return 1
install -Dm644 LICENSE $pkgdir/usr/share/licenses/sudo/LICENSE || return 1
install -Dm644 $srcdir/sudo.pam $pkgdir/opt/etc/pam.d/sudo || return 1
install -Dm644 LICENSE $pkgdir/opt/share/licenses/sudo/LICENSE || return 1
mv $pkgdir/etc/sudoers $pkgdir/opt/etc/
rmdir $pkgdir/etc
}

View file

@ -1,5 +1,5 @@
# $Id: PKGBUILD 38987 2009-05-11 06:21:37Z tpowa $
# Maintainer: Tobias Powalowski <tpowa@archlinux.org>
# Modified by OpenPogo
pkgname=sysfsutils
pkgver=2.1.0
@ -9,20 +9,19 @@ arch=(arm)
license=('GPL' 'LGPL')
url="http://linux-diag.sourceforge.net/Sysfsutils.html"
groups=('base')
depends=('glibc')
depends=()
source=(http://downloads.sourceforge.net/sourceforge/linux-diag/$pkgname-$pkgver.tar.gz)
md5sums=('14e7dcd0436d2f49aa403f67e1ef7ddc')
options=(!libtool)
build() {
cd $srcdir/$pkgname-$pkgver
./configure --prefix=/usr --mandir=/usr/share/man
./configure --prefix=/opt --mandir=/opt/share/man
make || return 1
make DESTDIR=$pkgdir install
cd $pkgdir
mkdir -v lib
mv -v usr/lib/libsysfs.so.2* lib/
ln -svf ../../lib/libsysfs.so.2 usr/lib/libsysfs.so
# mkdir -v lib
# mv -v usr/lib/libsysfs.so.2* lib/
ln -svf opt/lib/libsysfs.so.2 opt/lib/libsysfs.so
}

View file

@ -1,4 +1,5 @@
# Maintainer: Manuel Rotter <rotter.manuel@gmail.com>
# Maintainer: Manuel Rotter <rotter.manuel@gmail.com>
# Modified by OpenPogo
pkgname=syslog-ng
pkgver=3.0.3
@ -12,32 +13,33 @@ depends=('glib2' 'eventlog' 'tcp_wrappers' 'libcap>=2.16' 'openssl')
makedepends=('flex' 'pkgconfig')
optdepends=('logrotate')
provides=('logger')
backup=('etc/syslog-ng.conf' 'etc/logrotate.d/syslog-ng')
backup=('opt/etc/syslog-ng.conf' 'opt/etc/logrotate.d/syslog-ng')
source=(http://www.balabit.com/downloads/files/syslog-ng/sources/$pkgver/source/$pkgname\_$pkgver.tar.gz
syslog-ng.conf
syslog-ng.logrotate
syslog-ng.rc)
install=syslog-ng.install
md5sums=('b8b3c9af28696bce48ceca0de6444426'
'c42c6b19bfe784e41c1d4f99c9e7d600'
'9714c7479119922b55a7992677ebecb5'
'9bd98250cfa49e13fa3fa731b6040549')
'951798397619884393ba7f886124a519'
'f9f99dae78fdd9d2f965bb4806657168'
'cbfecd299aed3cf967dbc9e64a7a57da')
build() {
cd $srcdir/$pkgname-$pkgver
LDFLAGS="-Wl,--as-needed -Wl,--no-undefined" ./configure \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var/lib/syslog-ng \
--prefix=/opt \
--sysconfdir=/opt/etc \
--localstatedir=/opt/var/lib/syslog-ng \
--enable-tcp-wrapper \
--with-pidfile-dir=/var/run \
--with-pidfile-dir=/opt/var/run \
--disable-spoof-source
make || return 1
make DESTDIR=$pkgdir install || return 1
install -dm755 $pkgdir/var/lib/syslog-ng
install -Dm644 $srcdir/syslog-ng.conf $pkgdir/etc/syslog-ng.conf
install -Dm644 $srcdir/syslog-ng.logrotate $pkgdir/etc/logrotate.d/syslog-ng
install -Dm755 $srcdir/syslog-ng.rc $pkgdir/etc/rc.d/syslog-ng
install -dm755 $pkgdir/opt/var/lib/syslog-ng
install -Dm644 $srcdir/syslog-ng.conf $pkgdir/opt/etc/syslog-ng.conf
install -Dm644 $srcdir/syslog-ng.logrotate $pkgdir/opt/etc/logrotate.d/syslog-ng
install -Dm755 $srcdir/syslog-ng.rc $pkgdir/opt/etc/rc.d/syslog-ng
# remove libexec
rm -rf $pkgdir/usr/libexec
rm -rf $pkgdir/opt/libexec
}

View file

@ -1,6 +1,6 @@
@version: 3.0
#
# /etc/syslog-ng.conf
# /opt/etc/syslog-ng.conf
#
options {
@ -23,23 +23,23 @@ source src {
file("/proc/kmsg");
};
destination d_authlog { file("/var/log/auth.log"); };
destination d_syslog { file("/var/log/syslog.log"); };
destination d_cron { file("/var/log/crond.log"); };
destination d_daemon { file("/var/log/daemon.log"); };
destination d_kernel { file("/var/log/kernel.log"); };
destination d_lpr { file("/var/log/lpr.log"); };
destination d_user { file("/var/log/user.log"); };
destination d_uucp { file("/var/log/uucp.log"); };
destination d_mail { file("/var/log/mail.log"); };
destination d_news { file("/var/log/news.log"); };
destination d_ppp { file("/var/log/ppp.log"); };
destination d_debug { file("/var/log/debug.log"); };
destination d_messages { file("/var/log/messages.log"); };
destination d_errors { file("/var/log/errors.log"); };
destination d_everything { file("/var/log/everything.log"); };
destination d_iptables { file("/var/log/iptables.log"); };
destination d_acpid { file("/var/log/acpid.log"); };
destination d_authlog { file("/opt/var/log/auth.log"); };
destination d_syslog { file("/opt/var/log/syslog.log"); };
destination d_cron { file("/opt/var/log/crond.log"); };
destination d_daemon { file("/opt/var/log/daemon.log"); };
destination d_kernel { file("/opt/var/log/kernel.log"); };
destination d_lpr { file("/opt/var/log/lpr.log"); };
destination d_user { file("/opt/var/log/user.log"); };
destination d_uucp { file("/opt/var/log/uucp.log"); };
destination d_mail { file("/opt/var/log/mail.log"); };
destination d_news { file("/opt/var/log/news.log"); };
destination d_ppp { file("/opt/var/log/ppp.log"); };
destination d_debug { file("/opt/var/log/debug.log"); };
destination d_messages { file("/opt/var/log/messages.log"); };
destination d_errors { file("/opt/var/log/errors.log"); };
destination d_everything { file("/opt/var/log/everything.log"); };
destination d_iptables { file("/opt/var/log/iptables.log"); };
destination d_acpid { file("/opt/var/log/acpid.log"); };
destination d_console { usertty("root"); };
# Log everything to vc12

View file

@ -2,9 +2,9 @@
# arg 2: the old package version
post_upgrade() {
if [ "$(vercmp $2 2.1.3-3)" -lt 0 -a -e /etc/syslog-ng.conf.pacnew ]; then
if [ "$(vercmp $2 2.1.3-3)" -lt 0 -a -e /opt/etc/syslog-ng.conf.pacnew ]; then
echo "Attention syslog-ng update:"
echo "Configuration file syntax has changed. Make sure to update /etc/syslog-ng.conf"
echo "Configuration file syntax has changed. Make sure to update /opt/etc/syslog-ng.conf"
fi
}

View file

@ -1,7 +1,7 @@
/var/log/messages.log /var/log/auth.log /var/log/mail.log /var/log/kernel.log /var/log/errors.log /var/log/daemon.log /var/log/user.log /var/log/iptables.log /var/log/everything.log /var/log/syslog.log /var/log/acpid.log {
/opt/var/log/messages.log /opt/var/log/auth.log /opt/var/log/mail.log /opt/var/log/kernel.log /opt/var/log/errors.log /opt/var/log/daemon.log /opt/var/log/user.log /opt/var/log/iptables.log /opt/var/log/everything.log /opt/var/log/syslog.log /opt/var/log/acpid.log {
missingok
sharedscripts
postrotate
/bin/kill -HUP `cat /var/run/syslog-ng.pid 2>/dev/null` 2> /dev/null || true
/bin/kill -HUP `cat /opt/var/run/syslog-ng.pid 2>/dev/null` 2> /dev/null || true
endscript
}

View file

@ -1,13 +1,13 @@
#!/bin/bash
. /etc/rc.conf
. /etc/rc.d/functions
. /opt/etc/rc.conf
. /opt/etc/rc.d/functions
PID=`pidof -o %PPID /usr/sbin/syslog-ng`
PID=`pidof -o %PPID /opt/sbin/syslog-ng`
case "$1" in
start)
stat_busy "Starting Syslog-NG"
[ -z "$PID" ] && /usr/sbin/syslog-ng
[ -z "$PID" ] && /opt/sbin/syslog-ng
if [ $? -gt 0 ]; then
stat_fail
else
@ -21,9 +21,9 @@ case "$1" in
if [ $? -gt 0 ]; then
stat_fail
else
rm -f /var/run/syslog-ng.pid
# Removing stale syslog-ng.persist file. It's new location, as of 2.0.6-1, is /var/lib/syslog-ng/
rm -f /var/syslog-ng.persist
rm -f /opt/var/run/syslog-ng.pid
# Removing stale syslog-ng.persist file. It's new location, as of 2.0.6-1, is /opt/var/lib/syslog-ng/
rm -f /opt/var/syslog-ng.persist
rm_daemon syslog-ng
stat_done
fi

View file

@ -1,4 +1,5 @@
# Maintainer: Alexander Foremny <alexanderforemny@gmail.com>
# Modified by OpenPogo
pkgname=tar
pkgver=1.22
@ -7,15 +8,14 @@ pkgdesc="Utility used to store, backup, and transport files"
arch=(arm)
license=('GPL3')
url="http://www.gnu.org/software/tar/tar.html"
depends=('glibc' 'bash')
depends=()
source=(ftp://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.bz2)
md5sums=('07fa517027f426bb80f5f5ff91b63585')
build() {
cd ${srcdir}/tar-$pkgver
./configure --prefix=/usr --libexecdir=/usr/lib/tar --bindir=/bin || return 1
./configure --prefix=/opt --libexecdir=/opt/lib/tar --bindir=/opt/bin || return 1
make || return 1
make DESTDIR=${pkgdir} install
}

View file

@ -1,16 +0,0 @@
2008-12-24 Allan McRae <allan@archlinux.org>
* 8.5.6-1 :
new upstream release
2008-10-16 Allan McRae <allan@archlinux.org>
* 8.5.5-1 :
new upstream release
2008-08-16 Allan McRae <allan@archlinux.org>
* 8.5.4-1 :
new upstream release
FHS man directory
2008-07-01 Allan McRae <allan@archlinux.org>
* 8.5.3-1 :
new upstream release.

View file

@ -1,11 +1,13 @@
# Maintainer: Philipp Scholl <pscholl@bawue.de>
# Modified by OpenPogo
pkgname=tcl
pkgver=8.5.7
pkgrel=1
pkgdesc="The Tcl scripting language"
arch=('arm')
license=('custom')
depends=('glibc')
depends=()
groups=('base-devel')
source=(http://downloads.sourceforge.net/sourceforge/tcl/tcl${pkgver}-src.tar.gz)
url="http://tcl.sourceforge.net/"
@ -15,25 +17,25 @@ build() {
cd ${srcdir}/tcl${pkgver}/unix
if [ "$CARCH" = "x86_64" ]; then
./configure --prefix=/usr --mandir=/usr/share/man --enable-threads --enable-64bit
./configure --prefix=/opt --mandir=/opt/share/man --enable-threads --enable-64bit
else
./configure --prefix=/usr --mandir=/usr/share/man --enable-threads --disable-64bit
./configure --prefix=/opt --mandir=/opt/share/man --enable-threads --disable-64bit
fi
make || return 1
make INSTALL_ROOT=${pkgdir} install install-private-headers
ln -sf tclsh8.5 ${pkgdir}/usr/bin/tclsh
ln -sf tclsh8.5 ${pkgdir}/opt/bin/tclsh
# install license
install -Dm644 ../license.terms ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
install -Dm644 ../license.terms ${pkgdir}/opt/share/licenses/${pkgname}/LICENSE
# remove buildroot traces / fixes #3602
sed -i \
-e "s,^TCL_BUILD_LIB_SPEC='-L.*/unix,TCL_BUILD_LIB_SPEC='-L/usr/lib," \
-e "s,^TCL_SRC_DIR='.*',TCL_SRC_DIR='/usr/include'," \
-e "s,^TCL_BUILD_STUB_LIB_SPEC='-L.*/unix,TCL_BUILD_STUB_LIB_SPEC='-L/usr/lib," \
-e "s,^TCL_BUILD_STUB_LIB_PATH='.*/unix,TCL_BUILD_STUB_LIB_PATH='/usr/lib," \
-e "s,^TCL_BUILD_LIB_SPEC='-L.*/unix,TCL_BUILD_LIB_SPEC='-L/opt/lib," \
-e "s,^TCL_SRC_DIR='.*',TCL_SRC_DIR='/opt/include'," \
-e "s,^TCL_BUILD_STUB_LIB_SPEC='-L.*/unix,TCL_BUILD_STUB_LIB_SPEC='-L/opt/lib," \
-e "s,^TCL_BUILD_STUB_LIB_PATH='.*/unix,TCL_BUILD_STUB_LIB_PATH='/opt/lib," \
-e "s,^TCL_LIB_FILE='libtcl8.5..TCL_DBGX..so',TCL_LIB_FILE=\"libtcl8.5\$\{TCL_DBGX\}.so\"," \
-e "s,^TCL_CC_SEARCH_FLAGS='\(.*\)',TCL_CC_SEARCH_FLAGS='\1:/usr/lib'," \
-e "s,^TCL_LD_SEARCH_FLAGS='\(.*\)',TCL_LD_SEARCH_FLAGS='\1:/usr/lib'," \
${pkgdir}/usr/lib/tclConfig.sh
-e "s,^TCL_CC_SEARCH_FLAGS='\(.*\)',TCL_CC_SEARCH_FLAGS='\1:/opt/lib'," \
-e "s,^TCL_LD_SEARCH_FLAGS='\(.*\)',TCL_LD_SEARCH_FLAGS='\1:/opt/lib'," \
${pkgdir}/opt/lib/tclConfig.sh
}

View file

@ -1,4 +1,6 @@
# Maintainer: Krzysztof "hiciu" Warzecha <kwarzecha7@gmail.com>
# Modified by OpenPogo
pkgname=tcp_wrappers
pkgver=7.6
pkgrel=2
@ -7,31 +9,35 @@ arch=(arm)
url="ftp://ftp.porcupine.org/pub/security/index.html"
license=('custom')
groups=('base')
backup=(etc/hosts.allow etc/hosts.deny)
depends=('bash' 'glibc')
source=(ftp://ftp.porcupine.org/pub/security/${pkgname}_$pkgver.tar.gz \
hosts.allow hosts.deny try-from.8 safe_finger.8 gcc340.patch \
shared_lib_plus_plus-1.patch)
backup=(opt/etc/hosts.allow etc/hosts.deny)
depends=()
source=('ftp://ftp.porcupine.org/pub/security/${pkgname}_$pkgver.tar.gz'
'hosts.allow'
'hosts.deny'
'try-from.8'
'safe_finger.8'
'gcc340.patch'
'shared_lib_plus_plus-1.patch')
md5sums=('e6fa25f71226d090f34de3f6b122fb5a'
'384d92ca12f5950436d09a5cf8255cd6'
'a0ee30f6aeaca241c4d44f7c177eca6b'
'4a8f40f9a69f0848df92b232072e8561'
'1a6d7b11abb1fd69ace775d02a1c72cf'
'19c3badd4fbee547eb9de61ed93691af'
'e39dc7e099b741b6d2b1799a56ab77af')
'b9236fe5102b103d999cdf87715756a6')
build() {
cd $startdir/src/${pkgname}_$pkgver
patch -Np1 -i ../gcc340.patch || return 1
patch -Np1 -i ../shared_lib_plus_plus-1.patch || return 1
make REAL_DAEMON_DIR=/usr/sbin STYLE=-DSYS_ERRLIST_DEFINED linux || return 1
make REAL_DAEMON_DIR=/opt/sbin STYLE=-DSYS_ERRLIST_DEFINED linux || return 1
# dumb makefile
mkdir -p $startdir/pkg/usr/{include,lib,sbin}
mkdir -p $startdir/pkg/usr/share/man/man{3,5,8}
mkdir -p $startdir/pkg/opt/{include,lib,sbin}
mkdir -p $startdir/pkg/opt/share/man/man{3,5,8}
make DESTDIR=$startdir/pkg install
install -D -m644 ../hosts.allow $startdir/pkg/etc/hosts.allow
install -D -m644 ../hosts.deny $startdir/pkg/etc/hosts.deny
install -D -m644 ../hosts.allow $startdir/pkg/opt/etc/hosts.allow
install -D -m644 ../hosts.deny $startdir/pkg/opt/etc/hosts.deny
# install license
mkdir -p $startdir/pkg/usr/share/licenses/$pkgname
install -m644 DISCLAIMER $startdir/pkg/usr/share/licenses/$pkgname/license.txt
mkdir -p $startdir/pkg/opt/share/licenses/$pkgname
install -m644 DISCLAIMER $startdir/pkg/opt/share/licenses/$pkgname/license.txt
}

View file

@ -2,7 +2,7 @@ diff -Naur tcp_wrappers_7.6/Makefile tcp_wrappers_7.6.gimli/Makefile
--- tcp_wrappers_7.6/Makefile 1997-03-21 12:27:21.000000000 -0600
+++ tcp_wrappers_7.6.gimli/Makefile 2002-07-15 16:07:21.000000000 -0500
@@ -1,5 +1,10 @@
+GLIBC=$(shell grep -s -c __GLIBC__ /usr/include/features.h)
+GLIBC=$(shell grep -s -c __GLIBC__ /opt/include/features.h)
+
# @(#) Makefile 1.23 97/03/21 19:27:20
@ -23,15 +23,15 @@ diff -Naur tcp_wrappers_7.6/Makefile tcp_wrappers_7.6.gimli/Makefile
@echo " uts215 uxp"
@@ -43,8 +48,8 @@
# Ultrix 4.x SunOS 4.x ConvexOS 10.x Dynix/ptx
#REAL_DAEMON_DIR=/usr/etc
#REAL_DAEMON_DIR=/opt/etc
#
-# SysV.4 Solaris 2.x OSF AIX
-#REAL_DAEMON_DIR=/usr/sbin
-#REAL_DAEMON_DIR=/opt/sbin
+# SysV.4 Solaris 2.x OSF AIX Linux
+REAL_DAEMON_DIR=/usr/sbin
+REAL_DAEMON_DIR=/opt/sbin
#
# BSD 4.4
#REAL_DAEMON_DIR=/usr/libexec
#REAL_DAEMON_DIR=/opt/libexec
@@ -141,10 +146,21 @@
LIBS= RANLIB=ranlib ARFLAGS=rv AUX_OBJ= NETGROUP= TLI= \
EXTRA_CFLAGS=-DSYS_ERRLIST_DEFINED VSYSLOG= all
@ -95,7 +95,7 @@ diff -Naur tcp_wrappers_7.6/Makefile tcp_wrappers_7.6.gimli/Makefile
# Optional: Changing the default disposition of logfile records
@@ -514,7 +531,7 @@
#
# The LOG_XXX names below are taken from the /usr/include/syslog.h file.
# The LOG_XXX names below are taken from the /opt/include/syslog.h file.
-FACILITY= LOG_MAIL # LOG_MAIL is what most sendmail daemons use
+FACILITY= LOG_DAEMON # LOG_MAIL is what most sendmail daemons use
@ -242,31 +242,31 @@ diff -Naur tcp_wrappers_7.6/Makefile tcp_wrappers_7.6.gimli/Makefile
+install: install-lib install-bin install-dev
+
+install-lib:
+ install -o root -g root -m 0755 $(SHLIB) ${DESTDIR}/usr/lib/
+ ln -sf $(notdir $(SHLIB)) ${DESTDIR}/usr/lib/$(notdir $(SHLIBSOMAJ))
+ ln -sf $(notdir $(SHLIBSOMAJ)) ${DESTDIR}/usr/lib/$(notdir $(SHLIBSO))
+ install -o root -g root -m 0755 $(SHLIB) ${DESTDIR}/opt/lib/
+ ln -sf $(notdir $(SHLIB)) ${DESTDIR}/opt/lib/$(notdir $(SHLIBSOMAJ))
+ ln -sf $(notdir $(SHLIBSOMAJ)) ${DESTDIR}/opt/lib/$(notdir $(SHLIBSO))
+
+install-bin:
+ install -o root -g root -m 0755 tcpd ${DESTDIR}/usr/sbin/
+ install -o root -g root -m 0755 tcpdchk ${DESTDIR}/usr/sbin/
+ install -o root -g root -m 0755 tcpdmatch ${DESTDIR}/usr/sbin/
+ install -o root -g root -m 0755 try-from ${DESTDIR}/usr/sbin/
+ install -o root -g root -m 0755 safe_finger ${DESTDIR}/usr/sbin/
+ install -o root -g root -m 0644 tcpd.8 ${DESTDIR}/usr/share/man/man8/
+ install -o root -g root -m 0644 tcpdchk.8 ${DESTDIR}/usr/share/man/man8/
+ install -o root -g root -m 0644 try-from.8 ${DESTDIR}/usr/share/man/man8/
+ install -o root -g root -m 0644 tcpdmatch.8 ${DESTDIR}/usr/share/man/man8/
+ install -o root -g root -m 0644 safe_finger.8 ${DESTDIR}/usr/share/man/man8/
+ install -o root -g root -m 0644 hosts_access.5 ${DESTDIR}/usr/share/man/man5/
+ install -o root -g root -m 0644 hosts_options.5 ${DESTDIR}/usr/share/man/man5/
+ install -o root -g root -m 0755 tcpd ${DESTDIR}/opt/sbin/
+ install -o root -g root -m 0755 tcpdchk ${DESTDIR}/opt/sbin/
+ install -o root -g root -m 0755 tcpdmatch ${DESTDIR}/opt/sbin/
+ install -o root -g root -m 0755 try-from ${DESTDIR}/opt/sbin/
+ install -o root -g root -m 0755 safe_finger ${DESTDIR}/opt/sbin/
+ install -o root -g root -m 0644 tcpd.8 ${DESTDIR}/opt/share/man/man8/
+ install -o root -g root -m 0644 tcpdchk.8 ${DESTDIR}/opt/share/man/man8/
+ install -o root -g root -m 0644 try-from.8 ${DESTDIR}/opt/share/man/man8/
+ install -o root -g root -m 0644 tcpdmatch.8 ${DESTDIR}/opt/share/man/man8/
+ install -o root -g root -m 0644 safe_finger.8 ${DESTDIR}/opt/share/man/man8/
+ install -o root -g root -m 0644 hosts_access.5 ${DESTDIR}/opt/share/man/man5/
+ install -o root -g root -m 0644 hosts_options.5 ${DESTDIR}/opt/share/man/man5/
+
+install-dev:
+ install -o root -g root -m 0644 hosts_access.3 ${DESTDIR}/usr/share/man/man3/
+ install -o root -g root -m 0644 tcpd.h ${DESTDIR}/usr/include/
+ install -o root -g root -m 0644 $(LIB) ${DESTDIR}/usr/lib/
+ ln -sf hosts_access.3 ${DESTDIR}/usr/share/man/man3/hosts_ctl.3
+ ln -sf hosts_access.3 ${DESTDIR}/usr/share/man/man3/request_init.3
+ ln -sf hosts_access.3 ${DESTDIR}/usr/share/man/man3/request_set.3
+ install -o root -g root -m 0644 hosts_access.3 ${DESTDIR}/opt/share/man/man3/
+ install -o root -g root -m 0644 tcpd.h ${DESTDIR}/opt/include/
+ install -o root -g root -m 0644 $(LIB) ${DESTDIR}/opt/lib/
+ ln -sf hosts_access.3 ${DESTDIR}/opt/share/man/man3/hosts_ctl.3
+ ln -sf hosts_access.3 ${DESTDIR}/opt/share/man/man3/request_init.3
+ ln -sf hosts_access.3 ${DESTDIR}/opt/share/man/man3/request_set.3
shar: $(KIT)
@shar $(KIT)
@ -444,9 +444,9 @@ diff -Naur tcp_wrappers_7.6/hosts_access.5 tcp_wrappers_7.6.gimli/hosts_access.5
.in +3
.nf
-in.tftpd: ALL: (/some/where/safe_finger -l @%h | \\
- /usr/ucb/mail -s %d-%h root) &
+in.tftpd: ALL: (/usr/sbin/safe_finger -l @%h | \\
+ /usr/bin/mail -s %d-%h root) &
- /opt/ucb/mail -s %d-%h root) &
+in.tftpd: ALL: (/opt/sbin/safe_finger -l @%h | \\
+ /opt/bin/mail -s %d-%h root) &
.fi
.PP
The safe_finger command comes with the tcpd wrapper and should be
@ -511,8 +511,8 @@ diff -Naur tcp_wrappers_7.6/hosts_options.5 tcp_wrappers_7.6.gimli/hosts_options
.sp
.nf
.ti +3
-spawn (/some/where/safe_finger -l @%h | /usr/ucb/mail root) &
+spawn (/usr/sbin/safe_finger -l @%h | /usr/bin/mail root) &
-spawn (/some/where/safe_finger -l @%h | /opt/ucb/mail root) &
+spawn (/opt/sbin/safe_finger -l @%h | /opt/bin/mail root) &
.fi
.sp
executes, in a background child process, the shell command "safe_finger
@ -638,8 +638,8 @@ diff -Naur tcp_wrappers_7.6/safe_finger.c tcp_wrappers_7.6.gimli/safe_finger.c
/* Local stuff */
-char path[] = "PATH=/bin:/usr/bin:/usr/ucb:/usr/bsd:/etc:/usr/etc:/usr/sbin";
+char path[] = "PATH=/bin:/usr/bin:/sbin:/usr/sbin";
-char path[] = "PATH=/bin:/opt/bin:/opt/ucb:/opt/bsd:/etc:/opt/etc:/opt/sbin";
+char path[] = "PATH=/bin:/opt/bin:/sbin:/opt/sbin";
#define TIME_LIMIT 60 /* Do not keep listinging forever */
#define INPUT_LENGTH 100000 /* Do not keep listinging forever */
@ -706,8 +706,8 @@ diff -Naur tcp_wrappers_7.6/tcpd.8 tcp_wrappers_7.6.gimli/tcpd.8
+++ tcp_wrappers_7.6.gimli/tcpd.8 2002-01-07 08:50:19.000000000 -0600
@@ -94,7 +94,7 @@
.PP
The example assumes that the network daemons live in /usr/etc. On some
systems, network daemons live in /usr/sbin or in /usr/libexec, or have
The example assumes that the network daemons live in /opt/etc. On some
systems, network daemons live in /opt/sbin or in /opt/libexec, or have
-no `in.\' prefix to their name.
+no `in.' prefix to their name.
.SH EXAMPLE 2
@ -718,12 +718,12 @@ diff -Naur tcp_wrappers_7.6/tcpd.8 tcp_wrappers_7.6.gimli/tcpd.8
.sp
.ti +5
-finger stream tcp nowait nobody /some/where/tcpd in.fingerd
+finger stream tcp nowait nobody /usr/sbin/tcpd in.fingerd
+finger stream tcp nowait nobody /opt/sbin/tcpd in.fingerd
.sp
.fi
.PP
The example assumes that the network daemons live in /usr/etc. On some
systems, network daemons live in /usr/sbin or in /usr/libexec, the
The example assumes that the network daemons live in /opt/etc. On some
systems, network daemons live in /opt/sbin or in /opt/libexec, the
-daemons have no `in.\' prefix to their name, or there is no userid
+daemons have no `in.' prefix to their name, or there is no userid
field in the inetd configuration file.
@ -740,8 +740,8 @@ diff -Naur tcp_wrappers_7.6/tcpd.8 tcp_wrappers_7.6.gimli/tcpd.8
specifies an absolute path name for the process name field. For example:
.nf
.sp
- ntalk dgram udp wait root /some/where/tcpd /usr/local/lib/ntalkd
+ ntalk dgram udp wait root /usr/sbin/tcpd /usr/sbin/in.ntalkd
- ntalk dgram udp wait root /some/where/tcpd /opt/local/lib/ntalkd
+ ntalk dgram udp wait root /opt/sbin/tcpd /opt/sbin/in.ntalkd
.sp
.fi
.PP

View file

@ -1,23 +0,0 @@
2009-01-29 Allan McRae <allan@archlinux.org>
* texinfo 4.13a-3
* Add gzip dependency for compress info pages
* Add findutils dependency for post_install script
2008-09-26 Eric Belanger <eric@archlinux.org>
* texinfo 4.13a-1
* Upstream update
* Moved to base group
* Added install scriptlet to handle info pages
2008-04-28 Eric Belanger <eric@archlinux.org>
* texinfo 4.12-2
* Added to base-devel group
2008-04-21 Eric Belanger <eric@archlinux.org>
* texinfo 4.12-1
* Upstream update
* Updated license

View file

@ -1,4 +1,6 @@
# Maintainer: Krzysztof "hiciu" Warzecha <kwarzecha7@gmail.com>
# Modified by OpenPogo
pkgname=texinfo
pkgver=4.13a
pkgrel=3
@ -10,12 +12,11 @@ groups=('base')
depends=('ncurses' 'findutils' 'gzip')
source=(ftp://ftp.gnu.org/pub/gnu/${pkgname}/${pkgname}-${pkgver}.tar.gz)
md5sums=('71ba711519209b5fb583fed2b3d86fcb')
sha1sums=('a1533cf8e03ea4fa6c443b73f4c85e4da04dead0')
build() {
cd ${srcdir}/${pkgname}-4.13
./configure --prefix=/usr || return 1
./configure --prefix=/opt || return 1
make || return 1
make DESTDIR=${pkgdir} install || return 1
rm -rf ${pkgdir}/usr/share/{info,man}
rm -rf ${pkgdir}/opt/share/{info,man}
}

View file

@ -6,7 +6,7 @@ diff -Naur src/Makefile src-p/Makefile
# Everything gets put in subdirectories of. . .
-TOPDIR= /usr/local
+TOPDIR= $(DESTDIR)/usr
+TOPDIR= $(DESTDIR)/opt
# "Compiled" time zone information is placed in the "TZDIR" directory
# (and subdirectories).

View file

@ -1,12 +1,12 @@
# $Id: PKGBUILD 35429 2009-04-13 15:58:46Z andyrtr $
# Maintainer: Philipp Scholl <pscholl@bawue.de>
# Maintainer: Andreas Radke <andyrtr@archlinux.org>
# Modified by OpenPogo
pkgname=tzdata
pkgver=2009g
pkgver=2009l
pkgrel=1
_tzcode=2009e
_tzdata=2009g
_tzcode=2009k
_tzdata=2009l
pkgdesc="Sources for time zone and daylight saving time data"
arch=('arm')
url="http://www.twinsun.com/tz/tz-link.htm"
@ -18,9 +18,9 @@ options=('!emptydirs')
source=(ftp://elsie.nci.nih.gov/pub/tzcode${_tzcode}.tar.gz \
ftp://elsie.nci.nih.gov/pub/${pkgname}${_tzdata}.tar.gz \
Makefile.patch)
md5sums=('329c3ff06919193c55a293a73a8c618f'
'9f39846150469ef3badfd5e93f35b512'
'a64ed97d1fc03c66ee8612c0d9f40507')
md5sums=('d181116286661375966a350e3e358cfa'
'f95270458c97894b4b62613eb324b33c'
'31247ca14713f6dc46e4f6a4955adb4c')
build() {
cd ${srcdir}
@ -33,5 +33,5 @@ build() {
make || return 1
make DESTDIR="${pkgdir}" install || return 1
rm ${pkgdir}/usr/share/zoneinfo/localtime
rm ${pkgdir}/opt/share/zoneinfo/localtime
}

View file

@ -1,7 +1,8 @@
# $Id: PKGBUILD 46453 2009-07-18 12:36:22Z allan $
# Maintainer: Judd Vinet <jvinet@zeroflux.org>
# Contributor: Curtis Campbell <curtisjamescampbell@hotmail.com>
# arm Maintainer: Philipp Scholl <pscholl@bawue.de>
# Modified by OpenPogo
pkgname=usbutils
pkgver=0.84
pkgrel=1
@ -10,7 +11,7 @@ arch=(arm)
license=('GPL')
groups=('base')
makedepends=('wget')
depends=('glibc' 'libusb')
depends=('libusb')
url="http://linux-usb.sourceforge.net/"
source=(http://downloads.sourceforge.net/sourceforge/linux-usb/usbutils-$pkgver.tar.gz)
md5sums=('87612c82e66393a395db91361d168c1b')
@ -19,7 +20,7 @@ build() {
cd $srcdir/$pkgname-$pkgver
rm usb.ids
wget http://www.linux-usb.org/usb.ids
./configure --prefix=/usr --datadir=/usr/share/hwdata --disable-zlib
./configure --prefix=/opt --datadir=/opt/share/hwdata --disable-zlib
make || return 1
make DESTDIR=$pkgdir install
}

View file

@ -1,4 +1,6 @@
# Maintainer: Philipp Scholl <pscholl@bawue.de>
# Modified by OpenPogo
pkgname=util-linux-ng
pkgver=2.14.2
_loop_date=20090214
@ -7,7 +9,7 @@ pkgdesc="Miscellaneous system utilities for Linux"
url="http://userweb.kernel.org/~kzak/util-linux-ng/"
arch=(arm)
groups=('base')
depends=('bash' 'ncurses>=5.7' 'zlib' 'e2fsprogs')
depends=('ncurses>=5.7' 'zlib' 'e2fsprogs')
replaces=('linux32' 'util-linux')
conflicts=('linux32' 'util-linux')
provides=('linux32' 'util-linux')
@ -19,16 +21,13 @@ md5sums=('b9d0053a22cfcbf0b9c0aa6d6eccfbc8'
build() {
cd ${srcdir}/${pkgname}-${pkgver}
# cryptoloop support
patch -Np1 -i ${srcdir}/${pkgname}-${pkgver}-${_loop_date}.diff || return 1
# hardware clock
sed -e 's%etc/adjtime%var/lib/hwclock/adjtime%' -i hwclock/hwclock.c
mkdir -p ${startdir}/pkg/var/lib/hwclock
./configure --enable-arch --enable-write --enable-raw --disable-wall --enable-rdev
mkdir -p ${startdir}/pkg/opt/var/lib/hwclock
./configure --enable-arch --enable-write --enable-raw --disable-wall --enable-rdev --prefix=/opt
make HAVE_SLN=yes ADD_RAW=yes || return 1
make HAVE_SLN=yes ADD_RAW=yes DESTDIR=${startdir}/pkg install || return 1
make HAVE_SLN=yes ADD_RAW=yes DESTDIR=${startdir}/pkg/ install || return 1
# remove files
rm -f ${pkgdir}/bin/kill
rm -f ${pkgdir}/opt/bin/kill
}

View file

@ -1,4 +1,5 @@
# Maintainer: Manuel Rotter <rotter.manuel@gmail.com>
# Modified by OpenPogo
pkgname=vi
_pkgname=nvi
@ -9,7 +10,7 @@ arch=(arm)
url='http://www.kotnet.org/~skimo/nvi/'
license=('custom:nvi')
conflicts=('nvi-unicode')
depends=('bash' 'db')
depends=('db')
groups=('base')
options=(!libtool force)
source=(http://www.kotnet.org/~skimo/nvi/devel/${_pkgname}-${pkgver}.tar.bz2)
@ -18,10 +19,10 @@ md5sums=('88d1e23115ee9f2961186b62e55f5704')
build() {
cd ${srcdir}/${_pkgname}-${pkgver}/
cd ./build.unix
../dist/configure --prefix=/usr --program-prefix= --enable-widechar
../dist/configure --prefix=/opt --program-prefix= --enable-widechar
make || return 1
mkdir -p ${pkgdir}/usr/bin
cp ${srcdir}/${_pkgname}-${pkgver}/build.unix/vi ${pkgdir}/usr/bin
mkdir -p ${pkgdir}/opt/bin
cp ${srcdir}/${_pkgname}-${pkgver}/build.unix/vi ${pkgdir}/opt/bin
make DESTDIR=${pkgdir} install
install -D -m644 ../LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
install -D -m644 ../LICENSE ${pkgdir}/opt/share/licenses/${pkgname}/LICENSE
}

View file

@ -1,4 +1,5 @@
# Maintainer: Alexander Foremny <alexanderforemny@gmail.com>
# Modified by OpenPogo
pkgname=wget
pkgver=1.11.4
@ -8,15 +9,15 @@ arch=(arm)
url="http://www.gnu.org/software/wget/wget.html"
license=('GPL3')
groups=('base')
depends=('glibc' 'openssl')
backup=('etc/wgetrc')
depends=('openssl')
backup=('opt/etc/wgetrc')
source=(ftp://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.gz)
md5sums=('69e8a7296c0e12c53bd9ffd786462e87')
build() {
cd ${srcdir}/wget-$pkgver
./configure --prefix=/usr --sysconfdir=/etc || return 1
./configure --prefix=/opt --sysconfdir=/opt/etc || return 1
make || return 1
make DESTDIR=${pkgdir} install
}

View file

@ -1,4 +1,5 @@
# Maintainer: Alexander Foremny <alexanderforemny@gmail.com>
# Modified by OpenPogo
pkgname=which
pkgver=2.20
@ -8,14 +9,13 @@ arch=('arm')
url="http://www.xs4all.nl/~carlo17/which"
license=('GPL3')
groups=('base-devel')
depends=('glibc')
depends=()
source=(http://www.xs4all.nl/~carlo17/$pkgname/$pkgname-$pkgver.tar.gz)
md5sums=('95be0501a466e515422cde4af46b2744')
build() {
cd $startdir/src/which-$pkgver
./configure --prefix=/usr
./configure --prefix=/opt
make || return 1
make DESTDIR=$startdir/pkg install
}

View file

@ -1,6 +1,7 @@
# $Id: PKGBUILD 38713 2009-05-10 07:32:43Z tpowa $
# Maintainer: Judd Vinet <jvinet@zeroflux.org>
# Contributer: Jason Chu <jchu@xentac.net>
# Modified by OpenPogo
pkgname=wireless_tools
pkgver=29
pkgrel=4
@ -9,15 +10,16 @@ arch=(arm)
url="http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/Tools.html"
groups=('base')
license=('GPL')
depends=('glibc')
backup=('etc/conf.d/wireless')
source=(http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/wireless_tools.29.tar.gz wireless.conf.d)
depends=()
backup=('opt/etc/conf.d/wireless')
source=('http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/wireless_tools.29.tar.gz'
'wireless.conf.d')
md5sums=('e06c222e186f7cc013fd272d023710cb'
'027576534885b8d5dded9be546057b12')
build() {
cd $srcdir/wireless_tools.29
make || return 1
make INSTALL_DIR=$pkgdir/usr/sbin INSTALL_LIB=$pkgdir/usr/lib INSTALL_INC=$pkgdir/usr/include INSTALL_MAN=$pkgdir/usr/share/man install || return 1
install -D -m644 ../wireless.conf.d $startdir/pkg/etc/conf.d/wireless
make INSTALL_DIR=$pkgdir/opt/sbin INSTALL_LIB=$pkgdir/opt/lib INSTALL_INC=$pkgdir/opt/include INSTALL_MAN=$pkgdir/opt/share/man install || return 1
install -D -m644 ../wireless.conf.d $startdir/pkg/opt/etc/conf.d/wireless
}

View file

@ -1,5 +1,5 @@
# $Id: PKGBUILD 32196 2009-03-29 14:55:53Z thomas $
# Maintainer: Thomas Baechler <thomas@archlinux.org>
# Modified by OpenPogo
pkgname=wpa_supplicant
pkgver=0.6.9
@ -11,32 +11,32 @@ depends=('openssl' 'dbus-core>=1.2.4' 'readline' 'libnl')
optdepends=('wpa_supplicant_gui: wpa_gui program')
license=('GPL')
groups=('base')
backup=('etc/wpa_supplicant.conf')
backup=('opt/etc/wpa_supplicant.conf')
url="http://hostap.epitest.fi/wpa_supplicant"
source=(http://hostap.epitest.fi/releases/wpa_supplicant-$pkgver.tar.gz
config)
#http://downloads.sourceforge.net/sourceforge/madwifi/madwifi-${_madwifi_ver}.tar.gz)
source=('http://hostap.epitest.fi/releases/wpa_supplicant-$pkgver.tar.gz'
'config'
'Makefile')
md5sums=('0efb8fcedf0a8acf6f423dfdb0658fdd'
'd472554904cca44e1090e25dea7b03c9')
#'399d20de8d855a59f20058857c2178ad')
'7b74567825df411fbc2f43b2642e547d'
'd94c65954602146834b92a7a354f75eb')
build() {
cd "${srcdir}"
#mv madwifi-${_madwifi_ver} madwifi
cd "${srcdir}/${pkgname}-${pkgver}/${pkgname}"
cp ${srcdir}/config ./.config
sed -i 's@/usr/local@$(PREFIX)@g' Makefile
rm Makefile
cp $srcdir/Makefile .
sed -i 's@/opt/local@$(PREFIX)@g' Makefile
make || return 1
make PREFIX=/usr DESTDIR="${pkgdir}" install || return 1
install -m755 -d "${pkgdir}/etc"
install -m644 wpa_supplicant.conf "${pkgdir}/etc/wpa_supplicant.conf" || return 1
install -d -m755 ${pkgdir}/usr/share/man/man{5,8} || return 1
install -m644 doc/docbook/wpa_supplicant.conf.5 "${pkgdir}/usr/share/man/man5/" || return 1
install -m644 doc/docbook/{wpa_background,wpa_cli,wpa_passphrase,wpa_supplicant}.8 "${pkgdir}/usr/share/man/man8/" || return 1
make PREFIX=/opt DESTDIR="${pkgdir}" install || return 1
install -m755 -d "${pkgdir}/opt/etc"
install -m644 wpa_supplicant.conf "${pkgdir}/opt/etc/wpa_supplicant.conf" || return 1
install -d -m755 ${pkgdir}/opt/share/man/man{5,8} || return 1
install -m644 doc/docbook/wpa_supplicant.conf.5 "${pkgdir}/opt/share/man/man5/" || return 1
install -m644 doc/docbook/{wpa_background,wpa_cli,wpa_passphrase,wpa_supplicant}.8 "${pkgdir}/opt/share/man/man8/" || return 1
install -m755 -d "${pkgdir}/usr/share/dbus-1/system-services"
install -m644 dbus-wpa_supplicant.service "${pkgdir}/usr/share/dbus-1/system-services/fi.epitest.hostap.WPASupplicant.service" || return 1
sed -e 's/sbin/usr\/sbin/' -i "${pkgdir}/usr/share/dbus-1/system-services/fi.epitest.hostap.WPASupplicant.service" || return 1
install -m755 -d "${pkgdir}/etc/dbus-1/system.d"
install -m644 dbus-wpa_supplicant.conf "${pkgdir}/etc/dbus-1/system.d/fi.epitest.hostap.WPASupplicant.conf" || return 1
install -m755 -d "${pkgdir}/opt/share/dbus-1/system-services"
install -m644 dbus-wpa_supplicant.service "${pkgdir}/opt/share/dbus-1/system-services/fi.epitest.hostap.WPASupplicant.service" || return 1
sed -e 's/sbin/opt\/sbin/' -i "${pkgdir}/opt/share/dbus-1/system-services/fi.epitest.hostap.WPASupplicant.service" || return 1
install -m755 -d "${pkgdir}/opt/etc/dbus-1/system.d"
install -m644 dbus-wpa_supplicant.conf "${pkgdir}/opt/etc/dbus-1/system.d/fi.epitest.hostap.WPASupplicant.conf" || return 1
}

View file

@ -12,13 +12,13 @@
# Uncomment following two lines and fix the paths if you have installed OpenSSL
# or GnuTLS in non-default location
#CFLAGS += -I/usr/local/openssl/include
#LIBS += -L/usr/local/openssl/lib
#CFLAGS += -I/opt/local/openssl/include
#LIBS += -L/opt/local/openssl/lib
# Some Red Hat versions seem to include kerberos header files from OpenSSL, but
# the kerberos files are not in the default include path. Following line can be
# used to fix build issues on such systems (krb5.h not found).
#CFLAGS += -I/usr/include/kerberos
#CFLAGS += -I/opt/include/kerberos
# Example configuration for various cross-compilation platforms
@ -87,13 +87,13 @@ CONFIG_DRIVER_NL80211=y
# Driver interface for FreeBSD net80211 layer (e.g., Atheros driver)
#CONFIG_DRIVER_BSD=y
#CFLAGS += -I/usr/local/include
#LIBS += -L/usr/local/lib
#CFLAGS += -I/opt/local/include
#LIBS += -L/opt/local/lib
# Driver interface for Windows NDIS
#CONFIG_DRIVER_NDIS=y
#CFLAGS += -I/usr/include/w32api/ddk
#LIBS += -L/usr/local/lib
#CFLAGS += -I/opt/include/w32api/ddk
#LIBS += -L/opt/local/lib
# For native build using mingw
#CONFIG_NATIVE_WINDOWS=y
# Additional directories for cross-compilation on Linux host for mingw target
@ -321,7 +321,7 @@ CONFIG_PEERKEY=y
# and drawbacks of this option.
#CONFIG_INTERNAL_LIBTOMMATH=y
#ifndef CONFIG_INTERNAL_LIBTOMMATH
#LTM_PATH=/usr/src/libtommath-0.39
#LTM_PATH=/opt/src/libtommath-0.39
#CFLAGS += -I$(LTM_PATH)
#LIBS += -L$(LTM_PATH)
#LIBS_p += -L$(LTM_PATH)