--- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/old/lshw-20160717/PlamoBuild.lshw-B.02.16 2016-07-17 14:50:03.000000000 +0900 @@ -1,15 +1,16 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://ezix.org/software/files/lshw-B.02.16.tar.gz" +pkgbase=lshw +vers=B.02.16 arch=`uname -m` -build=P1 +build=P2 src=$pkgbase-$vers patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="README `echo docs/{TODO,IODC.txt,Changelog,proc_usb_info.txt}` + COPYING" ###################################################################### fscheck() { @@ -253,6 +254,7 @@ cd ${B[$i]} if [ -f Makefile ] ; then make + make gui fi done fi @@ -269,9 +271,30 @@ for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then - make install DESTDIR=$P + make install install-gui DESTDIR=$P fi done + touch $P/usr/sbin/gtk-lshw + install -d $P/usr/share/polkit-1/actions + cat <<- "EOF" > $P/usr/share/polkit-1/actions/org.plamolinux.pkexec.gtk-lshw.policy + + + + + Authentication is required to run the gtk-lshw + gtk-lshw + + auth_admin + auth_admin + auth_admin + + /usr/sbin/gtk-lshw + true + + + EOF touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ @@ -295,7 +318,10 @@ ( 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 usr/sbin | tail -n+2` + tar rvpf $pkg.tar -C $P usr/share/lshw + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/locale -name *.mo` + 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/man/man1 | tail -n+2` tar rvpf $pkg.tar -C $P usr/share/doc/$src touch -t `date '+%m%d0900'` $pkg.tar ; xz $pkg.tar ; touch $pkg.tar.xz