util-linux-ng: upstream renamed it again to util-linux. Update to 2.19rc1.
--HG-- rename : srcpkgs/util-linux-ng/INSTALL => srcpkgs/util-linux/INSTALL rename : srcpkgs/util-linux-ng/depends => srcpkgs/util-linux/depends rename : srcpkgs/util-linux-ng/files/adjtime.cron-hourly => srcpkgs/util-linux/files/adjtime.cron-hourly rename : srcpkgs/util-linux-ng/libblkid-devel.template => srcpkgs/util-linux/libblkid-devel.template rename : srcpkgs/util-linux-ng/libblkid.template => srcpkgs/util-linux/libblkid.template rename : srcpkgs/util-linux-ng/libmount-devel.template => srcpkgs/util-linux/libmount-devel.template rename : srcpkgs/util-linux-ng/libmount.template => srcpkgs/util-linux/libmount.template rename : srcpkgs/util-linux-ng/libuuid-devel.template => srcpkgs/util-linux/libuuid-devel.template rename : srcpkgs/util-linux-ng/libuuid.template => srcpkgs/util-linux/libuuid.template rename : srcpkgs/util-linux-ng/template => srcpkgs/util-linux/template
This commit is contained in:
10
srcpkgs/util-linux/INSTALL
Normal file
10
srcpkgs/util-linux/INSTALL
Normal file
@@ -0,0 +1,10 @@
|
||||
#
|
||||
# This script fixes group owner in some files.
|
||||
#
|
||||
case "${ACTION}" in
|
||||
post)
|
||||
# Change group in some files.
|
||||
bin/chgrp tty usr/bin/write usr/bin/wall
|
||||
[ $? -eq 0 ] && echo "Setting 'tty' group to wall(1) and write(1)."
|
||||
;;
|
||||
esac
|
||||
2
srcpkgs/util-linux/depends
Normal file
2
srcpkgs/util-linux/depends
Normal file
@@ -0,0 +1,2 @@
|
||||
abi_depends=">=2.18"
|
||||
api_depends="${abi_depends}"
|
||||
5
srcpkgs/util-linux/files/adjtime.cron-hourly
Normal file
5
srcpkgs/util-linux/files/adjtime.cron-hourly
Normal file
@@ -0,0 +1,5 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# Update our hwclock for system drift
|
||||
|
||||
/sbin/hwclock --adjust
|
||||
25
srcpkgs/util-linux/libblkid-devel.template
Normal file
25
srcpkgs/util-linux/libblkid-devel.template
Normal file
@@ -0,0 +1,25 @@
|
||||
# Template file for 'libblkid-devel'.
|
||||
#
|
||||
short_desc="libblkid development files"
|
||||
long_desc="
|
||||
libblkid contains a library to handle device identification
|
||||
and token extraction.
|
||||
|
||||
This package contains files for development, headers, static libs, etc."
|
||||
|
||||
Add_dependency run zlib-devel
|
||||
Add_dependency run libuuid-devel
|
||||
Add_dependency run libblkid
|
||||
|
||||
do_install()
|
||||
{
|
||||
mkdir -p ${DESTDIR}/usr/include/blkid ${DESTDIR}/usr/share/man/man3 \
|
||||
${DESTDIR}/usr/lib/pkgconfig
|
||||
|
||||
mv ${SRCPKGDESTDIR}/usr/include/blkid ${DESTDIR}/usr/include
|
||||
mv ${SRCPKGDESTDIR}/usr/lib/libblkid.a ${DESTDIR}/usr/lib
|
||||
mv ${SRCPKGDESTDIR}/usr/lib/pkgconfig/blkid.pc \
|
||||
${DESTDIR}/usr/lib/pkgconfig
|
||||
mv ${SRCPKGDESTDIR}/usr/share/man/man3/libblkid.3 \
|
||||
${DESTDIR}/usr/share/man/man3
|
||||
}
|
||||
17
srcpkgs/util-linux/libblkid.template
Normal file
17
srcpkgs/util-linux/libblkid.template
Normal file
@@ -0,0 +1,17 @@
|
||||
# Template file for 'libblkid'.
|
||||
#
|
||||
short_desc="Library to handle device identification"
|
||||
long_desc="
|
||||
The libblkid package contains a library to handle device identification
|
||||
and token extraction."
|
||||
|
||||
Add_dependency run glibc
|
||||
Add_dependency run zlib
|
||||
Add_dependency run libuuid
|
||||
|
||||
do_install()
|
||||
{
|
||||
mkdir -p ${DESTDIR}/lib ${DESTDIR}/usr/lib
|
||||
mv ${SRCPKGDESTDIR}/lib/libblkid.so* ${DESTDIR}/lib
|
||||
mv ${SRCPKGDESTDIR}/usr/lib/libblkid.so ${DESTDIR}/usr/lib
|
||||
}
|
||||
22
srcpkgs/util-linux/libmount-devel.template
Normal file
22
srcpkgs/util-linux/libmount-devel.template
Normal file
@@ -0,0 +1,22 @@
|
||||
# Template file for 'libmount-devel'.
|
||||
#
|
||||
short_desc="mount(8) library development files"
|
||||
long_desc="
|
||||
This NEW LIBRARY is designed to be used in low-level utils like
|
||||
mount(8) and /sbin/mount.<type> helpers as well as in some other
|
||||
projects.
|
||||
|
||||
This packages contains files for development, static files, headers, etc."
|
||||
|
||||
Add_dependency run glibc-devel
|
||||
Add_dependency run libblkid-devel
|
||||
Add_dependency run libuuid-devel
|
||||
Add_dependency run libmount
|
||||
|
||||
do_install()
|
||||
{
|
||||
mkdir -p ${DESTDIR}/usr/lib/pkgconfig ${DESTDIR}/usr/include
|
||||
mv ${SRCPKGDESTDIR}/usr/lib/libmount.a ${DESTDIR}/usr/lib
|
||||
mv ${SRCPKGDESTDIR}/usr/lib/pkgconfig/*mount* ${DESTDIR}/usr/lib/pkgconfig
|
||||
mv ${SRCPKGDESTDIR}/usr/include/mount ${DESTDIR}/usr/include
|
||||
}
|
||||
18
srcpkgs/util-linux/libmount.template
Normal file
18
srcpkgs/util-linux/libmount.template
Normal file
@@ -0,0 +1,18 @@
|
||||
# Template file for 'libmount'.
|
||||
#
|
||||
short_desc="A mount(8) library"
|
||||
long_desc="
|
||||
This NEW LIBRARY is designed to be used in low-level utils like
|
||||
mount(8) and /sbin/mount.<type> helpers as well as in some other
|
||||
projects."
|
||||
|
||||
Add_dependency run glibc
|
||||
Add_dependency run libblkid
|
||||
Add_dependency run libuuid
|
||||
|
||||
do_install()
|
||||
{
|
||||
mkdir -p ${DESTDIR}/lib ${DESTDIR}/usr/lib
|
||||
mv ${SRCPKGDESTDIR}/lib/libmount.so* ${DESTDIR}/lib
|
||||
mv ${SRCPKGDESTDIR}/usr/lib/libmount.so ${DESTDIR}/usr/lib
|
||||
}
|
||||
19
srcpkgs/util-linux/libuuid-devel.template
Normal file
19
srcpkgs/util-linux/libuuid-devel.template
Normal file
@@ -0,0 +1,19 @@
|
||||
# Template file for 'libuuid-devel'.
|
||||
#
|
||||
short_desc="UUID library development files"
|
||||
long_desc="
|
||||
libuuid generates and parses 128-bit universally unique id's (UUIDs).
|
||||
See RFC 4122 for more information.
|
||||
|
||||
This packages contains files for development, static files, headers, etc."
|
||||
|
||||
Add_dependency run glibc-devel
|
||||
|
||||
do_install()
|
||||
{
|
||||
mkdir -p ${DESTDIR}/usr/share/man ${DESTDIR}/usr/lib
|
||||
mv ${SRCPKGDESTDIR}/usr/lib/libuuid.a ${DESTDIR}/usr/lib
|
||||
mv ${SRCPKGDESTDIR}/usr/lib/pkgconfig ${DESTDIR}/usr/lib
|
||||
mv ${SRCPKGDESTDIR}/usr/include ${DESTDIR}/usr
|
||||
mv ${SRCPKGDESTDIR}/usr/share/man/man3 ${DESTDIR}/usr/share/man
|
||||
}
|
||||
15
srcpkgs/util-linux/libuuid.template
Normal file
15
srcpkgs/util-linux/libuuid.template
Normal file
@@ -0,0 +1,15 @@
|
||||
# Template file for 'libuuid'.
|
||||
#
|
||||
short_desc="UUID library"
|
||||
long_desc="
|
||||
libuuid generates and parses 128-bit universally unique id's (UUIDs).
|
||||
See RFC 4122 for more information."
|
||||
|
||||
Add_dependency run glibc
|
||||
|
||||
do_install()
|
||||
{
|
||||
mkdir -p ${DESTDIR}/lib ${DESTDIR}/usr/lib
|
||||
mv ${SRCPKGDESTDIR}/lib/libuuid.so* ${DESTDIR}/lib
|
||||
mv ${SRCPKGDESTDIR}/usr/lib/libuuid.so ${DESTDIR}/usr/lib
|
||||
}
|
||||
56
srcpkgs/util-linux/template
Normal file
56
srcpkgs/util-linux/template
Normal file
@@ -0,0 +1,56 @@
|
||||
# Template file for 'util-linux'
|
||||
pkgname=util-linux
|
||||
_distver=2.19
|
||||
_patchver=rc1
|
||||
version=${_distver}${_patchver}
|
||||
wrksrc=${pkgname}-${_distver}-${_patchver}
|
||||
distfiles="${KERNEL_SITE}/utils/${pkgname}-ng/v${_distver}/${pkgname}-${_distver}-${_patchver}.tar.bz2"
|
||||
build_style=gnu_configure
|
||||
configure_args="--enable-partx --enable-write --enable-libuuid
|
||||
--enable-libblkid --disable-fsck --disable-rpath --with-gnu-ld
|
||||
--disable-makeinstall-chown"
|
||||
short_desc="Miscellaneous linux utilities"
|
||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||
checksum=583c122245f301b8cdd27e37a7a1fc774fcf1a73c3d633d9eac0c165e9b573d6
|
||||
long_desc="
|
||||
The ${pkgname} package contains miscellaneous utility programs. Among
|
||||
them are utilities for handling file systems, consoles, partitions,
|
||||
and messages."
|
||||
|
||||
replaces="util-linux-ng>=0"
|
||||
subpackages="libmount libmount-devel libblkid libblkid-devel libuuid libuuid-devel"
|
||||
# Required by /var/lib/hwclock
|
||||
keep_empty_dirs=yes
|
||||
|
||||
Add_dependency run glibc
|
||||
Add_dependency run coreutils
|
||||
Add_dependency run zlib
|
||||
Add_dependency run libuuid
|
||||
Add_dependency run libblkid
|
||||
Add_dependency run libmount
|
||||
Add_dependency run ncursesw
|
||||
Add_dependency run shadow
|
||||
Add_dependency build pkg-config
|
||||
Add_dependency build gettext
|
||||
Add_dependency build zlib-devel
|
||||
Add_dependency build ncursesw-devel
|
||||
|
||||
post_configure()
|
||||
{
|
||||
cd $wrksrc
|
||||
for f in $(grep -rl '/etc/adjtime' .); do
|
||||
sed -i -e 's@etc/adjtime@var/lib/hwclock/adjtime@g' $f
|
||||
done
|
||||
}
|
||||
|
||||
post_install()
|
||||
{
|
||||
# Move logger to /bin.
|
||||
install -d -m 755 ${DESTDIR}/bin
|
||||
mv ${DESTDIR}/usr/bin/logger ${DESTDIR}/bin
|
||||
mkdir -p ${DESTDIR}/var/lib/hwclock
|
||||
|
||||
# Install the cron daily job.
|
||||
install -D -m744 ${FILESDIR}/adjtime.cron-hourly \
|
||||
${DESTDIR}/etc/cron.hourly/adjtime
|
||||
}
|
||||
Reference in New Issue
Block a user