mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
Core PKGBUILD cleanup x3
This commit is contained in:
parent
2bf72224aa
commit
0c09f42528
7 changed files with 31 additions and 60 deletions
|
@ -1,28 +0,0 @@
|
||||||
# Maintainer: Alexander Foremny <alexanderforemny@gmail.com>
|
|
||||||
|
|
||||||
pkgname=sysvinit
|
|
||||||
pkgver=2.86
|
|
||||||
pkgrel=3
|
|
||||||
pkgdesc="Linux System V Init"
|
|
||||||
arch=(arm)
|
|
||||||
license=('GPL')
|
|
||||||
groups=('base' 'small-base')
|
|
||||||
depends=('shadow' 'util-linux' 'coreutils' 'glibc' 'awk')
|
|
||||||
source=(ftp://ftp.cistron.nl/pub/people/miquels/$pkgname/$pkgname-$pkgver.tar.gz)
|
|
||||||
md5sums=('7d5d61c026122ab791ac04c8a84db967')
|
|
||||||
|
|
||||||
build() {
|
|
||||||
cd $srcdir/sysvinit-$pkgver
|
|
||||||
|
|
||||||
cp src/init.c src/init.c.backup
|
|
||||||
sed 's/\(.*\)\(Sending processes\)\(.*\)/\1\2 started by init\3/' \
|
|
||||||
src/init.c > tmp~
|
|
||||||
mv tmp~ src/init.c
|
|
||||||
mkdir -p $startdir/pkg/bin $startdir/pkg/sbin
|
|
||||||
mkdir -p $startdir/pkg/usr/bin
|
|
||||||
mkdir -p $startdir/pkg/usr/man/man5 $startdir/pkg/usr/man/man8
|
|
||||||
mkdir -p $startdir/pkg/usr/man/man1 $startdir/pkg/usr/include
|
|
||||||
make -C src || return 1
|
|
||||||
make -C src MANDIR=/usr/man ROOT=$startdir/pkg install
|
|
||||||
}
|
|
||||||
|
|
|
@ -16,7 +16,6 @@ md5sums=('69e8a7296c0e12c53bd9ffd786462e87')
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd ${srcdir}/wget-$pkgver
|
cd ${srcdir}/wget-$pkgver
|
||||||
|
|
||||||
./configure --prefix=/opt --sysconfdir=/opt/etc || return 1
|
./configure --prefix=/opt --sysconfdir=/opt/etc || return 1
|
||||||
make || return 1
|
make || return 1
|
||||||
make DESTDIR=${pkgdir} install
|
make DESTDIR=${pkgdir} install
|
||||||
|
|
|
@ -12,8 +12,8 @@ groups=('base')
|
||||||
license=('GPL')
|
license=('GPL')
|
||||||
depends=()
|
depends=()
|
||||||
backup=('opt/etc/conf.d/wireless')
|
backup=('opt/etc/conf.d/wireless')
|
||||||
source=('http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/wireless_tools.29.tar.gz'
|
source=(http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/$pkgname.$pkgver.tar.gz
|
||||||
'wireless.conf.d')
|
wireless.conf.d)
|
||||||
md5sums=('e06c222e186f7cc013fd272d023710cb'
|
md5sums=('e06c222e186f7cc013fd272d023710cb'
|
||||||
'027576534885b8d5dded9be546057b12')
|
'027576534885b8d5dded9be546057b12')
|
||||||
|
|
||||||
|
|
|
@ -13,30 +13,30 @@ license=('GPL')
|
||||||
groups=('base')
|
groups=('base')
|
||||||
backup=('opt/etc/wpa_supplicant.conf')
|
backup=('opt/etc/wpa_supplicant.conf')
|
||||||
url="http://hostap.epitest.fi/wpa_supplicant"
|
url="http://hostap.epitest.fi/wpa_supplicant"
|
||||||
source=('http://hostap.epitest.fi/releases/wpa_supplicant-$pkgver.tar.gz'
|
source=(http://hostap.epitest.fi/releases/wpa_supplicant-$pkgver.tar.gz
|
||||||
'config'
|
config
|
||||||
'Makefile')
|
Makefile)
|
||||||
md5sums=('0efb8fcedf0a8acf6f423dfdb0658fdd'
|
md5sums=('0efb8fcedf0a8acf6f423dfdb0658fdd'
|
||||||
'7b74567825df411fbc2f43b2642e547d'
|
'7b74567825df411fbc2f43b2642e547d'
|
||||||
'd94c65954602146834b92a7a354f75eb')
|
'd94c65954602146834b92a7a354f75eb')
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd "${srcdir}/${pkgname}-${pkgver}/${pkgname}"
|
cd "$srcdir/$pkgname-$pkgver/$pkgname"
|
||||||
cp ${srcdir}/config ./.config
|
cp $srcdir/config ./.config
|
||||||
rm Makefile
|
rm Makefile
|
||||||
cp $srcdir/Makefile .
|
cp $srcdir/Makefile .
|
||||||
sed -i 's@/opt/local@$(PREFIX)@g' Makefile
|
sed -i 's@/opt/local@$(PREFIX)@g' Makefile
|
||||||
make || return 1
|
make || return 1
|
||||||
make PREFIX=/opt DESTDIR="${pkgdir}" install || return 1
|
make PREFIX=/opt DESTDIR="$pkgdir" install || return 1
|
||||||
install -m755 -d "${pkgdir}/opt/etc"
|
install -m755 -d "$pkgdir/opt/etc"
|
||||||
install -m644 wpa_supplicant.conf "${pkgdir}/opt/etc/wpa_supplicant.conf" || return 1
|
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 -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_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 -m644 doc/docbook/{wpa_background,wpa_cli,wpa_passphrase,wpa_supplicant}.8 "$pkgdir/opt/share/man/man8/" || return 1
|
||||||
|
|
||||||
install -m755 -d "${pkgdir}/opt/share/dbus-1/system-services"
|
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
|
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
|
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 -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
|
install -m644 dbus-wpa_supplicant.conf "$pkgdir/opt/etc/dbus-1/system.d/fi.epitest.hostap.WPASupplicant.conf" || return 1
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,11 +11,11 @@ license=('custom')
|
||||||
depends=('tcp_wrappers')
|
depends=('tcp_wrappers')
|
||||||
optdepends=('perl: for xconv.pl script')
|
optdepends=('perl: for xconv.pl script')
|
||||||
backup=('opt/etc/xinetd.conf' 'opt/etc/xinetd.d/servers' 'opt/etc/xinetd.d/services')
|
backup=('opt/etc/xinetd.conf' 'opt/etc/xinetd.d/servers' 'opt/etc/xinetd.d/services')
|
||||||
source=('http://www.xinetd.org/xinetd-$pkgver.tar.gz'
|
source=(http://www.xinetd.org/$pkgname-$pkgver.tar.gz
|
||||||
'xinetd.conf'
|
xinetd.conf
|
||||||
'xinetd'
|
xinetd
|
||||||
'servers'
|
servers
|
||||||
'services')
|
services)
|
||||||
md5sums=('567382d7972613090215c6c54f9b82d9'
|
md5sums=('567382d7972613090215c6c54f9b82d9'
|
||||||
'3a6862fd5c45217e23c3151e556ccb5a'
|
'3a6862fd5c45217e23c3151e556ccb5a'
|
||||||
'86be3a85c090c7fb3f7207b7a34e54c9'
|
'86be3a85c090c7fb3f7207b7a34e54c9'
|
||||||
|
@ -24,7 +24,7 @@ md5sums=('567382d7972613090215c6c54f9b82d9'
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd $srcdir/$pkgname-$pkgver
|
cd $srcdir/$pkgname-$pkgver
|
||||||
sed -i "s#${prefix}/man#${prefix}/share/man#" configure
|
sed -i "s#${prefix}/man#opt/share/man#" configure
|
||||||
./configure --prefix=/opt --with-libwrap
|
./configure --prefix=/opt --with-libwrap
|
||||||
make || return 1
|
make || return 1
|
||||||
make prefix=$pkgdir/opt install
|
make prefix=$pkgdir/opt install
|
||||||
|
|
|
@ -13,7 +13,7 @@ provides=('lzma' 'lzma-utils')
|
||||||
replaces=('lzma' 'lzma-utils')
|
replaces=('lzma' 'lzma-utils')
|
||||||
conflicts=('lzma' 'lzma-utils')
|
conflicts=('lzma' 'lzma-utils')
|
||||||
options=('!libtool')
|
options=('!libtool')
|
||||||
source=("http://tukaani.org/xz/xz-${pkgver}.tar.gz")
|
source=(http://tukaani.org/$pkgname/$pkgname-$pkgver.tar.gz)
|
||||||
md5sums=('f00967331a487e88d51207fe17c56f52')
|
md5sums=('f00967331a487e88d51207fe17c56f52')
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
|
|
|
@ -10,17 +10,17 @@ license=('custom:zlib')
|
||||||
url="http://www.zlib.net/"
|
url="http://www.zlib.net/"
|
||||||
groups=('base')
|
groups=('base')
|
||||||
depends=()
|
depends=()
|
||||||
source=("ftp://ftp.archlinux.org/other/zlib/zlib-${pkgver}.tar.gz")
|
source=(ftp://ftp.archlinux.org/other/$pkgname/$pkgname-$pkgver.tar.gz)
|
||||||
md5sums=('c444cf020e5f0e3323b11f5a2d8af8d3')
|
md5sums=('c444cf020e5f0e3323b11f5a2d8af8d3')
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd ${srcdir}/zlib-$pkgver
|
cd $srcdir/zlib-$pkgver
|
||||||
|
|
||||||
./configure --prefix=/opt --shared
|
./configure --prefix=/opt --shared
|
||||||
make || return 1
|
make || return 1
|
||||||
make install prefix=${pkgdir}/opt || return 1
|
make install prefix=$pkgdir/opt || return 1
|
||||||
chmod 644 ${pkgdir}/opt/lib/libz.a
|
chmod 644 $pkgdir/opt/lib/libz.a
|
||||||
|
|
||||||
grep -A 24 '^ Copyright' zlib.h > license.txt
|
grep -A 24 '^ Copyright' zlib.h > license.txt
|
||||||
install -Dm644 license.txt ${pkgdir}/opt/share/licenses/zlib/license.txt
|
install -Dm644 license.txt $pkgdir/opt/share/licenses/zlib/license.txt
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue