milis/talimatname/genel/ufsutils/talimat

33 lines
1.2 KiB
Plaintext
Raw Normal View History

2017-04-20 10:15:26 +02:00
# Description: UFS dosya sistemini yönetmek için kullanılan yardımcı programlar, çoğunlukla BSD'de veya türemiş işletim sistemlerinde kullanılır.
2016-02-24 01:27:23 +01:00
# URL: https://packages.debian.org/sid/ufsutils
2017-04-20 10:15:26 +02:00
# Packager: milisarge
2016-02-24 01:27:23 +01:00
# Depends on: libbsd libedit
name=ufsutils
version=8.2
release=1
source=(https://mirrors.kernel.org/debian/pool/main/u/ufsutils/ufsutils_8.2.orig.tar.gz
https://mirrors.kernel.org/debian/pool/main/u/ufsutils/ufsutils_8.2-3.debian.tar.gz)
build() {
unset MAKEFLAGS
cd ${name}-${version}
for i in ../debian/patches/*.patch;do patch -p1 -i ${i};done
sed -e "s:sbin/growfs::" -i Makefile
sed -e "s:^\(prefix = \)\(.*\):\1${EPREFIX}usr:" \
-e "s:^\(libdir = \$(exec_prefix)\/\)\(.*\):\1$(get_libdir):" \
-i "Makefile.common"
make -C ../${name}-${version}
install -d ${PKG}/usr/bin
install -d ${PKG}/usr/lib
install -d ${PKG}/usr/share/man/man8
install -d ${PKG}/usr/share/licenses/${name}
install -d ${PKG}/usr/share/doc/${name}
make DESTDIR=${PKG} prefix=/usr sbindir=/usr/bin install
install -Dm644 ../debian/copyright ${PKG}/usr/share/licenses/${name}/COPYRIGHT
install -m644 ../debian/TODO ${PKG}/usr/share/doc/${name}
install -Dm644 ../debian/changelog ${PKG}/usr/share/doc/${name}/ChangeLog
}