we depend on coreutils (chmod, etc.)

svn path=/nixpkgs/trunk/; revision=4410
This commit is contained in:
Armijn Hemel 2005-12-22 18:10:47 +00:00
parent ae1c5fa88f
commit 57067bba9e
3 changed files with 9 additions and 8 deletions

View file

@ -5,4 +5,5 @@ ensureDir $out
sed -e "s^@bash\@^$bash^g" \
-e "s^@sshd\@^$ssh^g" \
-e "s^@initscripts\@^$initscripts^g" \
-e "s^@coreutils\@^$coreutils^g" \
< $script > $out/control

View file

@ -1,9 +1,9 @@
{stdenv, ssh, bash, initscripts, key ? null}:
{stdenv, ssh, bash, initscripts, coreutils, key ? null}:
stdenv.mkDerivation {
name = "ssh-script-0.0.1";
server = "ssh";
builder = ./builder.sh ;
inherit bash ssh initscripts;
inherit bash ssh initscripts coreutils;
script = [./sshd];
}

View file

@ -33,8 +33,8 @@ do_rsa1_keygen() {
if [ ! -s $RSA1_KEY ]; then
echo -n $"Generating SSH1 RSA host key: "
if $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
chmod 600 $RSA1_KEY
chmod 644 $RSA1_KEY.pub
@coreutils/bin/chmod 600 $RSA1_KEY
@coreutils@/bin/chmod 644 $RSA1_KEY.pub
success $"RSA1 key generation"
echo
else
@ -49,8 +49,8 @@ do_rsa_keygen() {
if [ ! -s $RSA_KEY ]; then
echo -n $"Generating SSH2 RSA host key: "
if $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
chmod 600 $RSA_KEY
chmod 644 $RSA_KEY.pub
@coreutils@/bin/chmod 600 $RSA_KEY
@coreutils@/bin/chmod 644 $RSA_KEY.pub
success $"RSA key generation"
echo
else
@ -65,8 +65,8 @@ do_dsa_keygen() {
if [ ! -s $DSA_KEY ]; then
echo -n $"Generating SSH2 DSA host key: "
if $KEYGEN -q -t dsa -f $DSA_KEY -C '' -N '' >&/dev/null; then
chmod 600 $DSA_KEY
chmod 644 $DSA_KEY.pub
@coreutils@/bin/chmod 600 $DSA_KEY
@coreutils@/bin/chmod 644 $DSA_KEY.pub
success $"DSA key generation"
echo
else