Changeset 44
- Timestamp:
- Jun 5, 2006, 10:53:07 PM (19 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Makefile.in
r40 r44 948 948 group=`id | sed s,.*gid=[0123456789]*\(,, | sed s,\).*,,`; \ 949 949 cat prototype | grep -v 'none / ' | \ 950 sed 's,none /etc .*,none /etc ? ? ?,' | \951 sed 's,none /etc/init.d .*,none /etc/init.d ? ? ?,' | \952 sed 's,none /usr .*,none /usr ? ? ?,' | \953 sed 's,none /usr/bin .*,none /usr/bin ? ? ?,' | \954 sed 's,none /var .*,none /var ? ? ?,' | \955 sed 's,none /var/lib .*,none /var/lib ? ? ?,' | \956 sed 's,none /var/log .*,none /var/log ? ? ?,' | \957 sed 's,none /var/run .*,none /var/run ? ? ?,' | \958 sed 's,none /usr/sbin .*,none /usr/sbin ? ? ?,' | \959 950 sed s,$$user\ $$group,root\ sys,g > prototype.1; \ 960 rm -f prototype && mv prototype.1 prototype; \ 961 if test -d /usr/local; then \ 962 cat prototype | \ 963 sed 's,none /usr/local .*,none /usr/local ? ? ?,' >prototype.1;\ 964 rm -f prototype && mv prototype.1 prototype; \ 965 fi; \ 966 if test -d /usr/local/bin; then \ 967 cat prototype | \ 968 sed 's,none /usr/local/bin .*,none /usr/local/bin ? ? ?,' >prototype.1;\ 969 rm -f prototype && mv prototype.1 prototype; \ 970 fi; \ 971 if test -d /usr/local/sbin; then \ 972 cat prototype | \ 973 sed 's,none /usr/local/sbin .*,none /usr/local/sbin ? ? ?,' >prototype.1;\ 974 rm -f prototype && mv prototype.1 prototype; \ 975 fi; \ 976 if test -d /usr/local/man; then \ 977 cat prototype | \ 978 sed 's,none /usr/local/man .*,none /usr/local/man ? ? ?,' >prototype.1;\ 979 rm -f prototype && mv prototype.1 prototype; \ 980 fi; \ 981 if test -d /usr/local/man/man5; then \ 982 cat prototype | \ 983 sed 's,none /usr/local/man/man5 .*,none /usr/local/man/man5 ? ? ?,' >prototype.1;\ 984 rm -f prototype && mv prototype.1 prototype; \ 985 fi; \ 986 if test -d /usr/local/man/man8; then \ 987 cat prototype | \ 988 sed 's,none /usr/local/man/man8 .*,none /usr/local/man/man8 ? ? ?,' >prototype.1;\ 989 rm -f prototype && mv prototype.1 prototype; \ 990 fi; \ 951 rm -f prototype.2; \ 952 while read line; do \ 953 echo "$${line}" | egrep '^d none' >/dev/null 2>&1; \ 954 if [ $$? = 0 ]; then \ 955 dir=`echo "$${line}" | awk '{ print $$3 }'`; \ 956 if [ -d "$$dir" ]; then \ 957 echo "d none $${dir} ? ? ?" >> prototype.2; \ 958 else \ 959 echo "$${line}" >> prototype.2; \ 960 fi; \ 961 else \ 962 echo "$${line}" >> prototype.2; \ 963 fi; \ 964 done < prototype.1; \ 965 rm -f prototype && rm prototype.1 && mv prototype.2 prototype; \ 991 966 echo "d none /etc/rc0.d ? ? ?" >> prototype; \ 992 967 echo "d none /etc/rc1.d ? ? ?" >> prototype; \ … … 1012 987 cp /tmp/samhain-pkg-staging/@install_name@.pkg $(PACKAGE)-$(VERSION).pkg; \ 1013 988 echo "Package $(PACKAGE)-$(VERSION).pkg is ready for installation"; \ 989 echo "to install, use: pkgadd -n -d $(PACKAGE)-$(VERSION).pkg all"; \ 1014 990 echo; \ 1015 991 rm -rf /var/spool/pkg/@install_name@ /tmp/samhain-pkg-staging; \ -
trunk/test/testrun_2a.sh
r30 r44 25 25 SERVER_BUILDOPTS="--quiet $TRUST --enable-network=server --prefix=$PW_DIR --localstatedir=$PW_DIR --with-config-file=REQ_FROM_SERVER$PW_DIR/testrc_2 --with-data-file=REQ_FROM_SERVER$PW_DIR/.samhain_file --with-logserver=${SH_LOCALHOST} --with-log-file=$PW_DIR/.samhain_log --with-pid-file=$PW_DIR/.samhain_lock"; export SERVER_BUILDOPTS 26 26 27 CLIENT_BUILDOPTS="--quiet $TRUST --enable-debug --enable-network=client --enable-srp --prefix=$PW_DIR --with-tmp-dir=$PW_DIR --localstatedir=$PW_DIR --with-config-file=REQ_FROM_SERVER$RCFILE --with-data-file=REQ_FROM_SERVER$PW_DIR/.samhain_file --with-logserver=localhost --with-log-file=$LOGFILE --with-pid-file=$PW_DIR/.samhain_lock "; export CLIENT_BUILDOPTS27 CLIENT_BUILDOPTS="--quiet $TRUST --enable-debug --enable-network=client --enable-srp --prefix=$PW_DIR --with-tmp-dir=$PW_DIR --localstatedir=$PW_DIR --with-config-file=REQ_FROM_SERVER$RCFILE --with-data-file=REQ_FROM_SERVER$PW_DIR/.samhain_file --with-logserver=localhost --with-log-file=$LOGFILE --with-pid-file=$PW_DIR/.samhain_lock --enable-suidcheck"; export CLIENT_BUILDOPTS 28 28 29 29 do_test_1_a () { … … 113 113 ${TOP_SRCDIR}/configure ${CLIENT_BUILDOPTS} 114 114 # 115 # Limit suid check 116 # 117 BASE="${PW_DIR}"; export BASE 118 # 119 if test x$? = x0; then 120 [ -z "$verbose" ] || log_msg_ok "configure..."; 121 $MAKE 'DBGDEF=-DSH_SUIDTESTDIR=\"${BASE}\"' > /dev/null 2>>test_log 122 if test x$? = x0; then 123 [ -z "$verbose" ] || log_msg_ok "make..."; 124 else 125 [ -z "$quiet" ] && log_msg_fail "make..."; 126 return 1 127 fi 128 129 else 130 [ -z "$quiet" ] && log_msg_fail "configure..."; 131 return 1 132 fi 133 134 # save binary and build server 135 # 136 cp samhain samhain.build || return 1 137 $MAKE clean >/dev/null || return 1 138 139 ${TOP_SRCDIR}/configure ${SERVER_BUILDOPTS} 140 # 115 141 if test x$? = x0; then 116 142 [ -z "$verbose" ] || log_msg_ok "configure..."; … … 128 154 fi 129 155 130 # save binary and build server131 #132 cp samhain samhain.build || return 1133 $MAKE clean >/dev/null || return 1134 135 ${TOP_SRCDIR}/configure ${SERVER_BUILDOPTS}136 #137 if test x$? = x0; then138 [ -z "$verbose" ] || log_msg_ok "configure...";139 $MAKE > /dev/null 2>>test_log140 if test x$? = x0; then141 [ -z "$verbose" ] || log_msg_ok "make...";142 else143 [ -z "$quiet" ] && log_msg_fail "make...";144 return 1145 fi146 147 else148 [ -z "$quiet" ] && log_msg_fail "configure...";149 return 1150 fi151 152 156 153 157 ##################################################################### … … 221 225 cp ./testrc_2 "./rc.${ALTHOST}" 222 226 cp ./file.${SH_LOCALHOST} "./file.${ALTHOST}" 2>/dev/null 223 224 227 } 225 228
Note:
See TracChangeset
for help on using the changeset viewer.