milis/talimatname/genel/ufsutils/talimat

33 lines
1.2 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 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.
# URL: https://packages.debian.org/sid/ufsutils
# Packager: milisarge
# 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
}