recipes

packages recipes for the <noname> package manager
Log | Files | Refs

build (636B)


      1 #!/bin/sh -e
      2 
      3 export CFLAGS="$(echo \
      4 	-I$libz/include \
      5 	-I$liblzo/include \
      6 	-I$libressl/include \
      7 )"
      8 
      9 export LDFLAGS="$(echo \
     10 	-L$libz/lib \
     11 	-L$liblzo/lib \
     12 	-L$libressl/lib \
     13 ) -static"
     14 
     15 ./configure \
     16 	--prefix="$PREFIX" \
     17 	--with-ssl-lib="$libressl/lib" \
     18 	--with-lzo-headers="$liblzo/include/lzo" \
     19 	--with-lzo-lib="$liblzo/lib" \
     20 	--with-ssl-headers="$libressl/include/openssl" \
     21 	--with-blowfish-headers="$libressl/include/openssl"
     22 
     23 for f in *.[cyh]; do
     24 	sed 's/inline //' $f >$$
     25 	mv $$ $f
     26 done
     27 
     28 grep -vF '$(BIN_DIR)/strip $(DESTDIR)$(SBIN_DIR)/vtund' Makefile >$$
     29 mv $$ Makefile
     30 make install
     31 
     32 mv "$PREFIX/sbin" "$PREFIX/bin"