Changeset 62 for devel/dploy-common
- Timestamp:
- 06/04/08 16:41:16 (4 years ago)
- Location:
- devel/dploy-common
- Files:
-
- 4 edited
-
Makefile.PL (modified) (2 diffs)
-
bin/dploy-common-post (modified) (2 diffs)
-
etc/dploy.conf (modified) (1 diff)
-
install.sh (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
devel/dploy-common/Makefile.PL
r44 r62 5 5 # the contents of the Makefile that is written. 6 6 WriteMakefile( 7 NAME => ' dploy',8 DISTNAME => ' dploy',7 NAME => 'PBPKG', 8 DISTNAME => 'PBPKG', 9 9 VERSION => 'PBVER', 10 10 INST_SCRIPT => 'blib/bin', … … 15 15 }, # e.g., Module::Name => 1.1 16 16 AUTHOR => 'Bruno Cornec <bruno#dploy.org>', 17 #EXE_FILES => [ qw( bin/dploy-check) ],18 #MAN1PODS => { 'bin/pb' => '$(INST_MAN1DIR)/pb.$(MAN1EXT)', },17 EXE_FILES => [ qw( bin/PBPKG-post ) ], 18 MAN1PODS => { 'bin/PBPKG-post' => '$(INST_MAN1DIR)/PBPKG-post.$(MAN1EXT)', }, 19 19 MAN3PODS => { 'lib/Dploy/Base.pm' => '$(INST_MAN3DIR)/Dploy::Base.$(MAN3EXT)', }, 20 20 ); -
devel/dploy-common/bin/dploy-common-post
r61 r62 59 59 chmod 0700,"$dir/.ssh"; 60 60 my $keyf = "$dir/.ssh/authorized_keys"; 61 my $pubf = " $ENV{'CONFDIR'}/keys/dploy_id_dsa.pub";61 my $pubf = "PBCONF/keys/dploy_id_dsa.pub"; 62 62 63 63 # Adds our key to that account authorized_keys … … 76 76 close(KEYF); 77 77 78 if ($found == 1) {78 if ($found == 0) { 79 79 open(KEYF,">> $keyf") || die "Unable to append to $keyf: $!"; 80 80 print KEYF "$prot $key $mail"; -
devel/dploy-common/etc/dploy.conf
r57 r62 3 3 4 4 # Folder path for PXE configuration files 5 pathpxe default = / tftpboot/pxelinux.cfg5 pathpxe default = /var/cache/dploy/pxelinux.cfg 6 6 7 7 # DHCP server IP address -
devel/dploy-common/install.sh
r56 r62 9 9 else 10 10 local=/usr/local 11 echo $PATH | grep $local/bin > /dev/null || echo "Warning - your PATH environmental variable is BROKEN. Please add $local/bin to your PATH."11 echo $PATH | grep $local/bin > /dev/null || echo "Warning - your PATH environmental variable is BROKEN. Please add $local/bin to your PATH." 12 12 conf=$local/$CONFDIR 13 13 fi … … 21 21 install -m 0644 etc/dploy.conf $conf 22 22 23 # Post install script 24 install -m 0755 bin/dploy-common-post $local/bin 25 26 # The script need to know where the CONFDIR is 27 perl -pi -e "s|PBCONF|$conf|" $local/bin/dploy-common-post 28 23 29 # Handling keys 24 30 ssh-keygen -b 1024 -t dsa -f $conf/keys/dploy_id_dsa -q -N ""
Note: See TracChangeset
for help on using the changeset viewer.
