ports

recipes for building multiple softwares
git clone git://z3bra.org/ports
Log | Files | Refs

commit ea52bb924048cf1c253eb817a360aa5d6a6bc482
parent 5a779db7ac5e93a150792b08e9048caed1d74c00
Author: z3bra <willyatmailoodotorg>
Date:   Sat Jan  9 15:30:17 2016

Cleanup init and iputils

Diffstat:
 init/makeme    | 10 +++-------
 iputils/makeme | 11 ++++++-----
 2 files changed, 9 insertions(+), 12 deletions(-)

diff --git a/init/makeme b/init/makeme @@ -4,13 +4,9 @@ source=git://github.com/strake/init commit=HEAD package() { - if cd $name-$version; then - git reset --hard - git pull - else - git clone $source $name-$version - cd $name-$version - fi + rm -rf $name-$version + git clone $source $name-$version + cd $name-$version sed 's,/sbin/go,/sbin/rc,' < init.c | sponge init.c $CC $CFLAGS init.c -o init $LDFLAGS diff --git a/iputils/makeme b/iputils/makeme @@ -10,11 +10,12 @@ package() { make USE_GNUTLS=no CC="$CC" LDFLAGS="$LDFLAGS" - install -d $WORKDIR/$name/{{s,}bin,man/man8} - install ping{,6} $WORKDIR/$name/bin/ - install arping $WORKDIR/$name/sbin/ - install tracepath{,6} traceroute6 clockdiff rarpd rdisc $WORKDIR/$name/sbin/ - chmod u+s $WORKDIR/$name/bin/ping{,6} $WORKDIR/$name/sbin/traceroute6 + mkdir -p $WORKDIR/$name/bin + mkdir -p $WORKDIR/$name/sbin + cp ping ping6 $WORKDIR/$name/bin/ + cp arping $WORKDIR/$name/sbin/ + cp tracepath tracepath6 traceroute6 clockdiff rarpd rdisc $WORKDIR/$name/sbin/ + chmod u+s $WORKDIR/$name/bin/ping $WORKDIR/$name/sbin/traceroute6 cd .. rm -rf $name-$version