Changeset 420 for trunk/tssh/make-package-debian
- Timestamp:
- Nov 25, 2019, 9:21:53 AM (5 years ago)
- File:
-
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/tssh/make-package-debian
r414 r420 1 1 #!/bin/bash 2 2 # 3 # 201 8/06/19Gabriel Moreau <Gabriel.Moreau@univ-grenoble-alpes.fr>3 # 2019/11/25 Gabriel Moreau <Gabriel.Moreau@univ-grenoble-alpes.fr> 4 4 5 5 trap '[ -n "${tmp_folder}" -a -d "${tmp_folder}" ] && rm -rf "${tmp_folder}"' QUIT … … 8 8 export LANG=C 9 9 10 tmp_folder=$(mktemp --directory /tmp/ ddt-XXXXXX)10 tmp_folder=$(mktemp --directory /tmp/tssh-XXXXXX) 11 11 [ -n "${tmp_folder}" -a -d "${tmp_folder}" ] || exit 1 12 12 13 13 # Set Name and Version 14 PKG_NAME= ddt15 CODE_VERSION=$(grep ' version->declare' ddt | cut -f 2 -d "'") #'14 PKG_NAME=tssh 15 CODE_VERSION=$(grep '^VERSION=' tssh | cut -f 2 -d "'") # ' 16 16 PKG_VERSION=1 17 17 … … 19 19 mkdir -p ${tmp_folder}/usr/bin 20 20 mkdir -p ${tmp_folder}/usr/share/man/man1 21 mkdir -p ${tmp_folder}/usr/share/ ddt21 mkdir -p ${tmp_folder}/usr/share/tssh 22 22 mkdir -p ${tmp_folder}/etc/bash_completion.d 23 cp ddt ${tmp_folder}/usr/bin/ 24 cp ddt.1.gz ${tmp_folder}/usr/share/man/man1/ 25 cp LICENSE.txt ${tmp_folder}/usr/share/ddt/ 26 cp config.sample.yml ${tmp_folder}/usr/share/ddt/ 27 cp ddt.bash_completion ${tmp_folder}/etc/bash_completion.d/ 28 (cd ${tmp_folder}/usr/bin; ln -s ddt dhcp-dns-tools) 29 (cd ${tmp_folder}/usr/share/man/man1; ln -s ddt.1.gz dhcp-dns-tools.1.gz) 30 chmod -R a+rx ${tmp_folder}/usr/bin/ddt 23 cp tssh ${tmp_folder}/usr/bin/ 24 cp tssh.1.gz ${tmp_folder}/usr/share/man/man1/ 25 cp LICENSE.txt ${tmp_folder}/usr/share/tssh/ 26 cp config.sample.sh ${tmp_folder}/usr/share/tssh/ 27 cp tssh.bash_completion ${tmp_folder}/etc/bash_completion.d/ 28 chmod -R a+rx ${tmp_folder}/usr/bin/tssh 31 29 chmod -R a+rX,go-w ${tmp_folder}/usr 32 30 chmod -R a+rX,go-w ${tmp_folder}/etc … … 41 39 Version: ${CODE_VERSION}-${PKG_VERSION} 42 40 Section: utils 43 Tag: implemented-in:: perl, interface::commandline, role::program41 Tag: implemented-in::bash, interface::commandline, role::program 44 42 Priority: optional 45 Depends: perl, perl-base, perl-modules, libyaml-syck-perl, libnet-netmask-perl, libreadonly-perl, libfile-touch-perl, libtext-table-perl, libnetaddr-ip-perl46 Suggests: libyaml-shell-perl | yamllint, perl-doc, isc-dhcp-server, bind943 Depends: tmux, openssh-client, ncurses-bin, findutils, grep 44 Suggests: nmap, parallel 47 45 Architecture: all 48 46 Installed-Size: $(du -ks ${tmp_folder}|cut -f 1) 49 47 Maintainer: Gabriel Moreau <Gabriel.Moreau@univ-grenoble-alpes.fr> 50 Description: dhcp-dns-tools management of computer names and IP addresses 51 DDT is an acronym for DHCP-DNS-Tools. 52 In practise, DDT is an IP Address Management (IPAM) service. 53 It has been used in the LEGI laboratory for over 10 years. 54 ddt (dhcp-dns-tools) is a small tool to maintain a set of computers/IP. 55 In order to help you in this task, ddt command has a set of action 56 to generated DHCP and DNS configuration files. 48 Description: tmux cluster ssh 49 tssh is an acronym for tmux ssh. 50 In practise, tssh is an ncurve version of cluster-ssh. 51 It has been used in the LEGI laboratory for over 5 years. 52 tssh is a small tool to luanch command over many computers. 57 53 . 58 The tool is quite effective and tries to keep things simple 59 but easily configurable for your site like a swiss army knife. 60 Everything is saved in a YAML database 61 and entries could be added, deleted, or modified by the command line. 62 Homepage: http://servforge.legi.grenoble-inp.fr/projects/soft-trokata/wiki/SoftWare/DDT 54 The tool is quite effective and tries to keep things simple. 55 Homepage: http://servforge.legi.grenoble-inp.fr/projects/soft-trokata/wiki/SoftWare/tssh 63 56 END 64 57 … … 81 74 echo "( cd /srv/www/debian/ ; reprepro includedeb jessie ~/jessie/${PKG_NAME}_${CODE_VERSION}-${PKG_VERSION}_all.deb )" 82 75 echo "( cd /srv/www/debian/ ; reprepro includedeb stretch ~/stretch/${PKG_NAME}_${CODE_VERSION}-${PKG_VERSION}_all.deb )" 83 echo "( cd /srv/www/debian/ ; reprepro dumpreferences ) | grep -i ddt"76 echo "( cd /srv/www/debian/ ; reprepro dumpreferences ) | grep -i tssh"
Note: See TracChangeset
for help on using the changeset viewer.