2012-05-27 12:04:03 +02:00
|
|
|
#!/bin/bash
|
2007-02-22 23:46:50 +01:00
|
|
|
# Created by Tobias Powalowski <tpowa@archlinux.org>
|
|
|
|
|
2011-07-06 15:55:39 +02:00
|
|
|
build ()
|
2007-02-22 23:46:50 +01:00
|
|
|
{
|
2012-05-27 12:04:03 +02:00
|
|
|
apps="/usr/bin/pacman /usr/bin/pacman-db-upgrade /usr/bin/pacman-key /usr/bin/pacsort /usr/bin/pactree /usr/bin/cleanupdelta /usr/bin/makepkg /usr/bin/pacman-optimize /usr/bin/pkgdelta /usr/bin/rankmirrors /usr/bin/repo-add /usr/bin/repo-elephant /usr/bin/repo-remove /usr/bin/testdb /usr/bin/testpkg /usr/bin/vercmp /usr/bin/curl"
|
|
|
|
for i in $apps; do
|
|
|
|
add_binary "$i"
|
|
|
|
done
|
2008-10-20 22:39:25 +02:00
|
|
|
DEPENDS="initscripts wget bash coreutils cryptsetup dialog \
|
2012-01-09 13:54:09 +01:00
|
|
|
e2fsprogs findutils gawk grep iputils jfsutils less lvm2 mdadm kmod nano \
|
2012-05-10 14:55:44 +02:00
|
|
|
ncurses net-tools gnu-netcat ntfsprogs pcmciautils procps-ng psmisc reiserfsprogs sed snarf \
|
2011-02-22 14:33:53 +01:00
|
|
|
syslog-ng sysvinit tar util-linux which wireless_tools xfsprogs dnsutils hdparm memtest86+ \
|
2011-07-23 17:29:35 +02:00
|
|
|
inetutils openssh hwdetect shadow bridge-utils ifenslave cpufrequtils links \
|
2012-05-28 12:00:01 +02:00
|
|
|
dosfstools systemd-tools initscripts filesystem linux glibc linux-api-headers xinetd links pacman \
|
2010-08-11 21:18:40 +02:00
|
|
|
pacman-mirrorlist screen kbd pam dhcpcd bzip2 gcc-libs openssl zlib elfutils gpm sysfsutils \
|
2012-03-27 15:40:49 +02:00
|
|
|
libgcrypt libgpg-error popt kexec-tools ppp libpcap rp-pppoe lilo iptables \
|
2010-05-30 22:10:52 +02:00
|
|
|
ntfs-3g isdn4k-utils pciutils usbutils vpnc openvpn b43-fwcutter wpa_supplicant gzip rsync \
|
|
|
|
libarchive device-mapper cracklib nfs-utils nfsidmap readline acl attr pcre cpio archboot \
|
2010-12-07 21:50:12 +01:00
|
|
|
fuse libusb-compat vim vim-runtime lzo2 libsasl libldap libevent gpm sdparm pptpclient licenses \
|
2011-06-07 17:11:23 +02:00
|
|
|
zd1211-firmware cifs-utils dmraid \
|
2010-05-30 22:10:52 +02:00
|
|
|
linux-atm netcfg parted tzdata ntp v86d iw crda wireless-regdb libnl iproute2 dhclient \
|
2012-04-10 12:18:14 +02:00
|
|
|
syslinux mtools perl gmp krb5 sqlite db dbus-core libcap fsarchiver xz librpcsecgss \
|
2011-05-11 16:56:40 +02:00
|
|
|
libtirpc wipe ddrescue testdisk ifplugd libdaemon wpa_actiond rfkill libgssglue icu gptfdisk \
|
2012-01-13 13:54:53 +01:00
|
|
|
btrfs-progs nilfs-utils linux-firmware ipw2100-fw ipw2200-fw iana-etc chntpw libusb \
|
2012-02-20 08:20:18 +01:00
|
|
|
grub2-common grub2-bios grub2-efi-x86_64 efibootmgr file eject keyutils yp-tools \
|
2011-08-31 09:14:49 +02:00
|
|
|
curl smartmontools dnsmasq lftp openconnect libxml2 libproxy speedtouch tcpdump nmap lua weechat \
|
2012-05-12 16:08:13 +02:00
|
|
|
gnutls nettle libtasn1 bind rpcbind expat progsreiserfs glib2 freetype2 libssh2 libedit \
|
2012-05-27 21:54:46 +02:00
|
|
|
talloc eventlog idnkit libjpeg-turbo pth gnupg libksba libassuan pinentry dirmngr gpgme ldns \
|
2012-05-29 15:09:34 +02:00
|
|
|
dnssec-anchors hwids libsystemd systemd systemd-arch-units"
|
2011-02-02 22:16:19 +01:00
|
|
|
|
2007-02-22 23:46:50 +01:00
|
|
|
|
|
|
|
for i in $DEPENDS; do
|
2007-10-22 07:56:38 +02:00
|
|
|
for k in $(echo /var/lib/pacman/local/$i-[0-9]*-[0-9]*); do
|
2011-05-09 14:57:02 +02:00
|
|
|
[ -e "$k/install" ] && add_file "$k/install"
|
2007-10-22 07:56:38 +02:00
|
|
|
add_file "$k/files"
|
|
|
|
add_file "$k/desc"
|
|
|
|
done
|
2007-02-22 23:46:50 +01:00
|
|
|
done
|
|
|
|
add_dir "/var/log"
|
2008-12-06 19:12:19 +01:00
|
|
|
add_file "/usr/share/archboot/pacman/etc/pacman.conf" "/etc/pacman.conf"
|
2011-03-13 14:24:11 +01:00
|
|
|
[ "$(uname -m)" = "x86_64" ] && add_file "/usr/share/archboot/pacman/etc/makepkg.conf.x86_64" "/etc/makepkg.conf"
|
|
|
|
[ "$(uname -m)" = "i686" ] && add_file "/usr/share/archboot/pacman/etc/makepkg.conf.i686" "/etc/makepkg.conf"
|
2012-04-18 10:34:20 +02:00
|
|
|
add_file "/usr/share/bash-completion/completions/makepkg"
|
|
|
|
add_file "/usr/share/bash-completion/completions/pacman"
|
|
|
|
add_file "/usr/share/bash-completion/completions/pacman-key"
|
2008-12-06 19:12:19 +01:00
|
|
|
add_file "/usr/share/archboot/pacman/etc/pacman.d/mirrorlist" "/etc/pacman.d/mirrorlist"
|
2007-02-22 23:46:50 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
help ()
|
|
|
|
{
|
|
|
|
cat<<HELPEOF
|
|
|
|
This hook includes the pacman on an arch boot image.
|
|
|
|
HELPEOF
|
2011-02-03 12:11:22 +01:00
|
|
|
}
|