2009-03-27 12:34:11 +01:00
|
|
|
# Template file for 'xbps-base-files'
|
|
|
|
pkgname=xbps-base-files
|
2009-10-19 16:22:28 +02:00
|
|
|
version=0.29
|
2009-03-27 12:34:11 +01:00
|
|
|
build_style=custom-install
|
|
|
|
short_desc="xbps base system files"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
|
|
long_desc="
|
|
|
|
This package installs the base system files and directories that
|
|
|
|
aren't installed by any other package and are required on any
|
|
|
|
GNU/Linux system."
|
|
|
|
|
2009-10-17 03:12:48 +02:00
|
|
|
keep_empty_dirs=yes
|
2009-03-27 12:34:11 +01:00
|
|
|
base_chroot=yes
|
|
|
|
noarch=yes
|
|
|
|
|
|
|
|
conf_files="/etc/profile /etc/hosts /etc/host.conf /etc/securetty
|
2009-10-04 19:38:00 +02:00
|
|
|
/etc/skel/.bash_profile /etc/skel/.bash_logout /etc/skel/.bashrc
|
|
|
|
/etc/issue"
|
2009-03-27 12:34:11 +01:00
|
|
|
|
|
|
|
do_install()
|
|
|
|
{
|
|
|
|
#
|
|
|
|
# Install FHS system directories.
|
|
|
|
#
|
|
|
|
for d in bin sbin boot etc home lib dev proc mnt opt sys var \
|
|
|
|
media; do
|
|
|
|
install -d ${DESTDIR}/${d}
|
|
|
|
done
|
|
|
|
|
|
|
|
install -d -m750 ${DESTDIR}/root
|
|
|
|
for d in tmp var/tmp var/lock var/spool/mail; do
|
|
|
|
install -d -m1777 ${DESTDIR}/${d}
|
|
|
|
done
|
|
|
|
|
|
|
|
for d in local local/bin local/sbin local/include local/lib \
|
|
|
|
bin include lib sbin src; do
|
|
|
|
install -d ${DESTDIR}/usr/${d}
|
|
|
|
done
|
|
|
|
|
|
|
|
for d in locale misc terminfo zoneinfo doc info; do
|
|
|
|
install -d ${DESTDIR}/usr/share/${d}
|
|
|
|
install -d ${DESTDIR}/usr/local/share/${d}
|
|
|
|
done
|
|
|
|
|
|
|
|
for f in 1 2 3 4 5 6 7 8; do
|
|
|
|
install -d ${DESTDIR}/usr/share/man/man${d}
|
|
|
|
install -d ${DESTDIR}/usr/local/share/man/man${d}
|
|
|
|
done
|
|
|
|
|
|
|
|
cd ${DESTDIR}/usr && ln -s ./share/man man
|
|
|
|
cd ${DESTDIR}/usr/local && ln -s ./share/man man
|
|
|
|
|
|
|
|
for d in log run opt cache lib; do
|
|
|
|
install -d ${DESTDIR}/var/${d}
|
|
|
|
done
|
|
|
|
|
|
|
|
if [ "$xbps_machine" = "x86_64" ]; then
|
|
|
|
install -d ${DESTDIR}/usr/lib
|
|
|
|
install -d ${DESTDIR}/lib
|
|
|
|
cd ${DESTDIR} && ln -s lib lib64
|
|
|
|
cd ${DESTDIR}/usr && ln -s lib lib64
|
|
|
|
fi
|
|
|
|
|
|
|
|
#
|
|
|
|
# Install trigger files.
|
|
|
|
#
|
|
|
|
install -d ${DESTDIR}/var/db/xbps/triggers
|
|
|
|
install -m755 ${XBPS_TRIGGERSDIR}/* ${DESTDIR}/var/db/xbps/triggers
|
|
|
|
|
|
|
|
#
|
|
|
|
# Install misc config files.
|
|
|
|
#
|
|
|
|
for f in bash_logout bash_profile bashrc; do
|
|
|
|
install -D -m644 ${FILESDIR}/dot_${f} ${DESTDIR}/etc/skel/.${f}
|
|
|
|
done
|
|
|
|
|
|
|
|
install -m644 ${FILESDIR}/profile ${DESTDIR}/etc
|
|
|
|
install -m600 ${FILESDIR}/securetty ${DESTDIR}/etc
|
|
|
|
install -m644 ${FILESDIR}/hosts ${DESTDIR}/etc
|
|
|
|
install -m644 ${FILESDIR}/host.conf ${DESTDIR}/etc
|
2009-10-04 19:38:00 +02:00
|
|
|
install -m644 ${FILESDIR}/issue ${DESTDIR}/etc
|
2009-03-27 12:34:11 +01:00
|
|
|
|
|
|
|
install -d ${DESTDIR}/etc/profile.d
|
|
|
|
install -m644 ${FILESDIR}/*.sh ${DESTDIR}/etc/profile.d
|
2009-03-27 16:39:55 +01:00
|
|
|
install -m644 ${FILESDIR}/DIR_COLORS* ${DESTDIR}/etc
|
2009-03-27 12:34:11 +01:00
|
|
|
|
|
|
|
install -d ${DESTDIR}/etc/modprobe.d
|
2009-08-11 17:13:33 +02:00
|
|
|
install -m644 ${FILESDIR}/usb-load-ehci-first \
|
|
|
|
${DESTDIR}/etc/modprobe.d/usb-load-ehci-first.conf
|
2009-10-19 16:22:28 +02:00
|
|
|
install -m644 ${FILESDIR}/blacklist.conf ${DESTDIR}/etc/modprobe.d
|
2009-03-27 12:34:11 +01:00
|
|
|
}
|