ports

zandra's ports tree
git clone git://zandra.org/ports
Log | Files | Refs | README | LICENSE

libcap.mk (792B)


      1 # make deps: perl.
      2 # TODO: use libattr, for libpcap/cap_file.c ?
      3 TARG = libcap
      4 # DEPS = libattr?
      5 
      6 INSTALL_BIN = \
      7 	progs/capsh \
      8 	progs/getcap \
      9 	progs/getpcaps \
     10 	progs/setcap
     11 
     12 INSTALL_MAN3 = \
     13 	`{ ls doc/*.3 }
     14 
     15 INSTALL_MAN8 = \
     16 	`{ ls doc/*.8 }
     17 
     18 <$mkbuild/mk.common-noinst
     19 
     20 libcap:QV:
     21 	cp ../make.rules Make.Rules
     22 	cp ../libcap_makefile libcap/Makefile
     23 	sed 's@/bin/bash@/bin/sh@g' -i progs/capsh.c
     24 	# install lib for use as a dependency.
     25 	make -j$nprocs install \
     26 		prefix="/" \
     27 		lib="/lib" \
     28 		BUILD_CC="$HOSTCC" \
     29 		CFLAGS="$CFLAGS" \
     30 		LDFLAGS="$LDFLAGS" \
     31 		FAKEROOT="`pwd`/lib" \
     32 		DESTDIR="`pwd`/lib" \
     33 		PAM_CAP="no" \
     34 		RAISE_SETFCAP="no" \
     35 		CC="$CC -static" \
     36 		LD="$LD"
     37 		AR="$AR" \
     38 		RANLIB="$RANLIB"
     39 
     40 install:QV:
     41 	make -j$nprocs install prefix="/" lib="/lib" DESTDIR="$ROOT"