ports

morpheus ports
git clone git://git.2f30.org/ports
Log | Files | Refs | LICENSE

openssh.mk (1160B)


      1 TARG = openssh
      2 DEPS = zlib openssl
      3 
      4 <$mkbuild/mk.common-noinst
      5 
      6 openssh:QV:
      7 	export CFLAGS="$CFLAGS $DEPS_CFLAGS"
      8 	export LDFLAGS="$LDFLAGS $DEPS_LDFLAGS"
      9 	# prevent from installing some things (keysign and maybe others) setuid.
     10 	sed -i 's@-m 4711@-m 0750@g' Makefile.in
     11 	# work around for issue #104 until we come up with a proper patch
     12 	issue104cflags="-fno-builtin-exit -D__noreturn__="
     13 	CC="${CC} -static" \
     14 	ac_cv_path_AR="${AR}" \
     15 	CFLAGS="$issue104cflags -D_BSD_SOURCE -DMISSING_FD_MASK -DMISSING_NFDBITS $CFLAGS" \
     16 		./configure -C \
     17 			--prefix="$PREFIX" \
     18 			--sbindir="$PREFIX"/bin --libexecdir="$PREFIX"/lib/ssh \
     19 			--sysconfdir="$PREFIX"/etc/ssh \
     20 			--with-privsep-user=nobody \
     21 			--with-md5-passwords --with-mantype=man --mandir="$PREFIX"/share/man \
     22 			--disable-strip --disable-lastlog --disable-utmp --disable-utmpx --disable-btmp \
     23 			--disable-wtmp --disable-wtmpx --disable-pututline --disable-pututxline
     24 	mkdir netinet
     25 	touch netinet/in_systm.h
     26 	sed -i '/USE_BTMP/d' config.h
     27 	sed -i '/USE_UTMP/d' config.h
     28 	sed -i 's@HAVE_DECL_HOWMANY 1@HAVE_DECL_HOWMANY 0@' config.h
     29 	make -j$nprocs
     30 
     31 install:QV:
     32 	make DESTDIR="$ROOT" install-nokeys
     33