|
|
|
@ -19,15 +19,13 @@ vserver_cqtools() {
|
|
|
|
|
tar $taropt `match_source_file -p " cq-tools"` |
|
|
|
|
cd cq-tools-* |
|
|
|
|
|
|
|
|
|
eval "$MAKE all" |
|
|
|
|
eval "$MAKE $makeopt all" |
|
|
|
|
|
|
|
|
|
# no `make install` |
|
|
|
|
cp -vdf $( grep '^all:' Makefile | cut -f2 ) $sbindir |
|
|
|
|
cp -vdf $( grep '^all:' Makefile | cut -f2 ) $root$sbindir |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
var_append patchfiles ' ' $( match_source_file -p patch-$ver ) |
|
|
|
|
makeopt= |
|
|
|
|
makeinstopt='install' |
|
|
|
|
|
|
|
|
|
if [ "$SDECFG_PKG_VSERVER_QUOTA" = "1" ]; then |
|
|
|
|
hook_add postmake 5 'vserver_cqtools' |
|
|
|
@ -43,3 +41,18 @@ vserver_tests() {
|
|
|
|
|
chmod +x $root$docdir/test{me,fs}.sh |
|
|
|
|
} |
|
|
|
|
hook_add postmake 5 "vserver_tests" |
|
|
|
|
|
|
|
|
|
# some help to crosscompile |
|
|
|
|
# |
|
|
|
|
for x in ip iptables vconfig wget; do |
|
|
|
|
case "$x" in |
|
|
|
|
ip) y=iproute2 ;; |
|
|
|
|
vconfig) |
|
|
|
|
y=vlan ;; |
|
|
|
|
esac |
|
|
|
|
|
|
|
|
|
z=$( echo "$x" | tr '[a-z]' '[A-Z]' ) |
|
|
|
|
|
|
|
|
|
pkgprefix -t $y |
|
|
|
|
var_append configcache ' ' ac_cv_path_$z=$( pkgprefix bindir $y )/$x |
|
|
|
|
done |
|
|
|
|