From d150a5f3e462fa7fe194a805a4aa0076f4d03ab9 Mon Sep 17 00:00:00 2001 From: Deposite Pirate Date: Sun, 16 Sep 2018 18:48:36 +0200 Subject: Add ports. --- base/fs_ext/fs_ext.build | 124 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 124 insertions(+) create mode 100755 base/fs_ext/fs_ext.build (limited to 'base/fs_ext/fs_ext.build') diff --git a/base/fs_ext/fs_ext.build b/base/fs_ext/fs_ext.build new file mode 100755 index 0000000..fc05ed8 --- /dev/null +++ b/base/fs_ext/fs_ext.build @@ -0,0 +1,124 @@ +#!/bin/bash +# +# Maintainer: Deposite Pirate + +source /usr/src/ports/Build/build.sh + +NAME=fs_ext +VERSION=1.42.7 +BUILD=1 +OPTIONS="noinfoz" + +# Description + +cat > ${PKG}/install/slack-desc <> ${PKG}/install/doinst.sh < /dev/null + fi + done +} + +config etc/mke2fs.conf.new + +# Install texinfo files + +install_info libext2fs +EOF + +# Sources + +SRCNAME[0]=e2fsprogs +SRCVERS[0]=${VERSION} +SRCPACK[0]=http://kernel.org/pub/linux/kernel/people/tytso/e2fsprogs/v${SRCVERS[0]}/${SRCNAME[0]}-${SRCVERS[0]}.tar.xz +SRCCOPY[0]="GPL2 LGPL2" + +build0() +{ +sed -i 's|$(libdir)/pkgconfig|$(datadir)/pkgconfig|g' */*/Makefile.in +CFLAGS="${FLAGS}" CXXFLAGS="${FLAGS}" \ +./configure \ + --build="${ARCH}-slackware-linux" \ + --disable-rpath \ + --prefix="${SYS_DIR[usr]}" \ + --mandir="${SYS_DIR[man]}" \ + --infodir="${SYS_DIR[info]}" \ + --docdir="${SYS_DIR[doc]}/${SRCNAME[0]}-${SRCVERS[0]}" \ + --sysconfdir="${SYS_DIR[etc]}" \ + --libdir="${SYS_DIR[lib]}" \ + --localstatedir="${SYS_DIR[var]}" \ + --enable-elf-shlibs \ + --disable-libblkid \ + --disable-libuuid \ + --disable-uuidd +make ${JOBS} V=1 +make install install-libs DESTDIR="${PKG}" +changelog RELEASE-NOTES +mv \ + ${PKG}${SYS_DIR[etc]}/mke2fs.conf \ + ${PKG}${SYS_DIR[etc]}/mke2fs.conf.new +( + for fstype in ext2 ext3 ext4 ext4dev; do + cd ${PKG}${SYS_DIR[sbin]} + rm -f fsck.${fstype} mkfs.${fstype} + ln -sf mke2fs mkfs.${fstype} + ln -sf e2fsck fsck.${fstype} + cd ${PKG}${SYS_DIR[man]}/man8 + rm -f fsck.${fstype} mkfs.${fstype} + echo ".so man8/mke2fs.8" > mkfs.${fstype} + echo ".so man8/e2fsck.8" > fsck.${fstype} + done +) +( + cd ${PKG}${SYS_DIR[sbin]} + rm -f e2label findfs + ln -sf tune2fs e2label + ln -sf mke2fs mke3fs + ln -sf mke2fs mke4fs + cd ${PKG}${SYS_DIR[man]}/man8 + echo ".so man8/mke2fs.8" > mke3fs.8 + echo ".so man8/mke2fs.8" > mke4fs.8 +) +sed -i -e 's/^AWK=.*/AWK=awk/' "${PKG}/usr/bin/compile_et" +sed -i -e 's#^SS_DIR=.*#SS_DIR="/usr/share/ss"#' "${PKG}/usr/bin/mk_cmds" +sed -i -e 's#^ET_DIR=.*#ET_DIR="/usr/share/et"#' "${PKG}/usr/bin/compile_et" +} -- cgit v1.2.3-70-g09d2