wok-current diff dropbear-pam/receipt @ rev 2186

Add dropbear-pam
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Feb 09 09:44:28 2009 +0000 (2009-02-09)
parents
children a21224b0a7b8
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dropbear-pam/receipt	Mon Feb 09 09:44:28 2009 +0000
     1.3 @@ -0,0 +1,63 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="dropbear-pam"
     1.7 +VERSION="0.51"
     1.8 +CATEGORY="security"
     1.9 +SHORT_DESC="Light SSH client and server using PAM."
    1.10 +MAINTAINER="pascal.bellard@slitaz.org"
    1.11 +SOURCE="dropbear"
    1.12 +TARBALL="$SOURCE-$VERSION.tar.gz"
    1.13 +DEPENDS="zlib pam"
    1.14 +BUILD_DEPENDS="zlib zlib-dev pam pam-dev"
    1.15 +WEB_SITE="http://matt.ucc.asn.au/dropbear/dropbear.html"
    1.16 +WGET_URL="http://matt.ucc.asn.au/dropbear/releases/$TARBALL"
    1.17 +CONFIG_FILES="/etc/dropbear"
    1.18 +PROVIDE="dropbear:pam"
    1.19 +
    1.20 +# Rules to configure and make the package.
    1.21 +compile_rules()
    1.22 +{
    1.23 +	local i
    1.24 +	local DROPBEARS
    1.25 +	DROPBEARS="dropbearkey dropbearconvert dbclient scp"
    1.26 +	cd $src
    1.27 +	[ -f done.dropbear-xauth.u ] || patch -p1 < ../stuff/dropbear-xauth.u
    1.28 +	touch done.dropbear-xauth.u
    1.29 +	./configure --prefix=/usr --enable-pam $CONFIGURE_ARGS &&
    1.30 +	make PROGRAMS="dropbear $DROPBEARS" MULTI=1 &&
    1.31 +	install -d -m 755 $PWD/_pkg/usr/sbin &&
    1.32 +	install -m 755 dropbearmulti $PWD/_pkg/usr/sbin/dropbear &&
    1.33 +	chown root $PWD/_pkg/usr/sbin/dropbear &&
    1.34 +	chgrp 0 $PWD/_pkg/usr/sbin/dropbear &&
    1.35 +	install -d -m 755 $PWD/_pkg/usr/bin &&
    1.36 +	for i in $DROPBEARS ssh; do
    1.37 +		ln -s ../sbin/dropbear $PWD/_pkg/usr/bin/$i
    1.38 +	done
    1.39 +}
    1.40 +
    1.41 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.42 +genpkg_rules()
    1.43 +{
    1.44 +	mkdir -p $fs/usr
    1.45 +	cp -a $_pkg/usr/bin $fs/usr
    1.46 +	cp -a $_pkg/usr/sbin $fs/usr
    1.47 +	strip -s $fs/usr/bin/*
    1.48 +	strip -s $fs/usr/sbin/*
    1.49 +	# Config file and init script.
    1.50 +	mkdir -p $fs/etc
    1.51 +	cp -a stuff/dropbear $fs/etc
    1.52 +	cp -a stuff/init.d $fs/etc
    1.53 +	touch   $fs/etc/dropbear/dropbear_dss_host_key \
    1.54 +		$fs/etc/dropbear/dropbear_rsa_host_key
    1.55 +	
    1.56 +	# Fix dropbear initscript perms
    1.57 +	chown -R root.root $fs
    1.58 +}
    1.59 +
    1.60 +# Post message when installing.
    1.61 +post_install()
    1.62 +{
    1.63 +	echo -e "\nTo starts $PACKAGE server you can run :\n"
    1.64 +	echo "/etc/init.d/$PACKAGE start"
    1.65 +	echo -e "Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf\n"
    1.66 +}