--- admin/PlamoBuild-template-20161020 2016-10-20 00:36:22.000000000 +0900 +++ plamo/00_base/old/e2fsprogs-20161206/PlamoBuild.e2fsprogs-1.43.3 2016-12-06 05:39:01.000000000 +0900 @@ -1,15 +1,18 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://downloads.sourceforge.net/e2fsprogs/e2fsprogs-1.43.3.tar.gz" +pkgbase=e2fsprogs +vers=1.43.3 arch=`uname -m` -build=P1 +build=P2 src=$pkgbase-$vers patchfiles="" -OPT_CONFIG="" -DOCS="README" +OPT_CONFIG="--enable-elf-shlibs --disable-libuuid --disable-libblkid + --disable-fsck --disable-e2initrd-helper --disable-uuidd + --with-root-prefix=" +DOCS="INSTALL.elfbin RELEASE-NOTES README NOTICE ABOUT-NLS INSTALL + SUBMITTING-PATCHES" template=20161020 tmplurl=ftp://plamo.linet.gr.jp/pub/Plamo-src/admin ###################################################################### @@ -235,6 +238,13 @@ esac done done + cd $B + if [ $arch == x86_64 ] ; then + cp -p configure{,.orig} + sed -i '/^ root_libdir=/s@$libdir@/lib64@g' configure + fi + cp -p misc/mke2fs.conf.in{,.orig} + sed -i 's@,dir_index@@g' misc/mke2fs.conf.in for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then @@ -274,6 +284,7 @@ make install DESTDIR=$P fi done + make install-libs DESTDIR=$P touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ @@ -311,9 +322,23 @@ ( cd $docdir ; find ${src[$i]} -type d -exec touch -r $W/{} {} \; ) done convert - tar cvpf $pkg.tar -C $P `cd $P ; find usr/bin | tail -n+2` + tar cvpf $pkg.tar -C $P `cd $P ; find sbin | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/sbin | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/bin | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find $libdir | tail -n+2` + tar rvpf $pkg.tar -C $P \ + `cd $P ; find usr/$libdir ! -name pkgconfig | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/include -maxdepth 1 | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/locale -name *.mo` + tar rvpf $pkg.tar -C $P usr/share/et usr/share/ss + tar rvpf $pkg.tar -C $P etc/mke2fs.conf + tar rvpf $pkg.tar -C $P usr/share/info/libext2fs.info.gz tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man1 | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man3 | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man5 | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man8 | tail -n+2` tar rvpf $pkg.tar -C $P usr/share/doc/$src + tar rvpf $pkg.tar -C $P install/doinst.sh touch -t `date '+%m%d0900'` $pkg.tar ; xz $pkg.tar ; touch $pkg.tar.xz mv $pkg.tar.xz $pkg.txz read -p "Do you want to keep work files? [y/N] " ans