--- admin/PlamoBuild-template-20170713 2017-07-13 13:07:00.000000000 +0900 +++ plamo/05_ext/network2.txz/NetworkManager/PlamoBuild.NetworkManager-0.9.4.0 2018-04-13 21:51:43.000000000 +0900 @@ -1,19 +1,21 @@ #!/bin/sh ###################################################################### -url="" +url="http://ftp.gnome.org/pub/gnome/sources/NetworkManager/0.9/NetworkManager-0.9.4.0.tar.xz + ftp://plamo.linet.gr.jp/pub/Plamo-src/plamo/05_ext/network2.txz/NetworkManager/networkmanager-unbreak-build-with-latest-kernel-headers.patch" verify= digest= branch= commitid= -pkgbase= -vers= +pkgbase=NetworkManager +vers=0.9.4.0 arch=`uname -m` -build=P1 +build=P2 src=$pkgbase-$vers -patchfiles="" -OPT_CONFIG="" -DOCS="README" +patchfiles="networkmanager-unbreak-build-with-latest-kernel-headers.patch" +OPT_CONFIG="--with-distro=slackware" +DOCS="AUTHORS NEWS ChangeLog INSTALL COPYING README TODO CONTRIBUTING + ABOUT-NLS" template=20170713 tmplurl=ftp://plamo.linet.gr.jp/pub/Plamo-src/admin ###################################################################### @@ -37,6 +39,9 @@ if [ -d ${B[$i]} ] ; then rm -rf ${B[$i]} ; fi ; cp -a ${S[$i]} ${B[$i]} done apply_patches + cd $B + cp -p configure{,.orig} + sed -i '/CFLAGS/s@ -Werror@@g' configure for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -x configure ] ; then @@ -65,16 +70,44 @@ make install DESTDIR=$P fi done + install -d $P/etc/rc.d/init.d + ln -s ../rc.networkmanager $P/etc/rc.d/init.d/networkmanager + chmod 644 $P/etc/rc.d/rc.networkmanager touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ -exec touch -t `date '+%m%d0900'` {} \; compress + strip_libdir $P/usr/$libdir/pppd/2.4.5 setup_docdir convert_links - tar cvpf $pkg.tar -C $P `cd $P ; find usr/bin | tail -n+2` + prune_symlink $P/etc/rc.d/init.d + tar cvpf $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 usr/libexec | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/$libdir -maxdepth 1 -name libnm-u*` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/$libdir/pkgconfig | tail -n+2` + tar rvpf $pkg.tar -C $P \ + `cd $P ; find usr/$libdir/girepository-1.0 | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/$libdir -maxdepth 1 -name libnm-g*` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/$libdir/pppd/2.4.5 | 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/gir-1.0 | tail -n+2` + tar rvpf $pkg.tar -C $P usr/share/NetworkManager + tar rvpf $pkg.tar -C $P \ + `cd $P ; find usr/share/dbus-1/system-services | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/polkit-1/actions | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/locale -name *.mo` + tar rvpf $pkg.tar -C $P etc/NetworkManager + tar rvpf $pkg.tar -C $P `cd $P ; find etc/dbus-1/system.d | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find etc/rc.d -type f` + tar rvpf $pkg.tar -C $P var/{run,lib}/NetworkManager + tar rvpf $pkg.tar -C $P `cd $P ; find lib/udev/rules.d | tail -n+2` 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/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 cleanup