--- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/old/tree-20161017/PlamoBuild.tree-1.6.0 2016-10-17 15:31:58.000000000 +0900 @@ -1,15 +1,15 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="ftp://mama.indstate.edu/linux/tree/tree-1.6.0.tgz" +pkgbase=tree +vers=1.6.0 arch=`uname -m` -build=P1 +build=P2 src=$pkgbase-$vers patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="CHANGES INSTALL LICENSE README TODO" ###################################################################### fscheck() { @@ -233,6 +233,24 @@ esac done done + cd $B + cp -p Makefile{,.orig} + cat <<- "EOF" | patch Makefile + 97,98c97,98 + < install -d $(BINDIR) + < install -d $(MANDIR) + --- + > install -d $(DESTDIR)$(BINDIR) + > install -d $(DESTDIR)$(MANDIR) + 100c100 + < install -s $(TREE_DEST) $(BINDIR)/$(TREE_DEST); \ + --- + > install -s $(TREE_DEST) $(DESTDIR)$(BINDIR)/$(TREE_DEST); \ + 102c102 + < install doc/$(MAN) $(MANDIR)/$(MAN) + --- + > install doc/$(MAN) $(DESTDIR)$(MANDIR)/$(MAN) + EOF for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then @@ -269,7 +287,7 @@ for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then - make install DESTDIR=$P + make install DESTDIR=$P MANDIR=/usr/share/man/man1 fi done touch $W/i.et @@ -294,6 +312,7 @@ fi ( cd $docdir ; find ${src[$i]} -type d -exec touch -r $W/{} {} \; ) done + touch -t `date '+%m%d0900'` $docdir/$src 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`