--- admin/PlamoBuild-template-20161020 2016-10-20 00:36:22.000000000 +0900 +++ plamo/00_base/old/udev-20161120/PlamoBuild.udev-175 2016-11-20 17:07:07.000000000 +0900 @@ -1,15 +1,17 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="https://www.kernel.org/pub/linux/utils/kernel/hotplug/udev-175.tar.xz" +pkgbase=udev +vers=175 arch=`uname -m` -build=P1 +build=P3 src=$pkgbase-$vers patchfiles="" -OPT_CONFIG="" -DOCS="README" +OPT_CONFIG="--libexecdir=/lib/udev --enable-static + --disable-introspection --enable-rule_generator" +DOCS="README extras/keymap/README.keymap.txt INSTALL ChangeLog NEWS + TODO COPYING" template=20161020 tmplurl=ftp://plamo.linet.gr.jp/pub/Plamo-src/admin ###################################################################### @@ -246,7 +248,8 @@ if [ -x configure ] ; then ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ --libdir='${exec_prefix}'/$libdir --infodir='${prefix}'/share/info \ - --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} + --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} \ + --with-rootlibdir=/$libdir fi done fi @@ -274,6 +277,13 @@ make install DESTDIR=$P fi done + install -d $P/sbin + mv $P/lib/udev/udevd $P/sbin + ln -s /sbin/udevd $P/lib/udev + mv $P/usr/sbin/udevadm $P/sbin + ln -s /sbin/udevadm $P/usr/sbin + mv $P/usr/$libdir/{lib{udev,gudev-1.0}.{so,la},pkgconfig} $C + mv $C/{lib{udev,gudev-1.0}.{so,la},pkgconfig} $P/usr/$libdir touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ @@ -311,9 +321,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 rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man1 | tail -n+2` + prune_symlink $P/lib/udev + touch -t `date '+%m%d0900'` $P/lib/udev + 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 lib/udev + 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/pkgconfig | tail -n+2` + tar rvpf $pkg.tar -C $P \ + `cd $P ; find usr/share/gtk-doc/html -maxdepth 1 | tail -n+2` + tar rvpf $pkg.tar -C $P etc/udev + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man7 | 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