|
|
- # Maintainer: Pekka Helenius <pekka[dot]helenius[at]fjordtek[dot]com>
-
- # Do we include server-specific files such as SSH timezone settings?
- server_environment=false
-
- if [[ $server_environment == "true" ]]; then
- pkgname=archtools-server
- pkgdesc="Useful scripts for Arch Linux (server)"
- conflicts=(archtools)
- else
- pkgname=archtools
- pkgdesc="Useful scripts for Arch Linux"
- conflicts=(archtools-server)
- fi
-
- pkgver=0.1
- pkgrel=1
- url="https://github.com/Fincer/archtools"
- arch=(any)
- license=(GPL)
- depends=(coreutils bash grep sed
- pacman # bininfo.sh, pkginfo.sh, buildpkg.sh, installlocal.sh, missinglibs.sh, nowner.sh, findpkg.sh, findinpkg.sh, pkgdeps.sh, risks.sh, showpkg.sh
- perl # findpkg.sh, genmac.sh
- wget # getsource.sh
- file # nowner.sh
- which iputils 9base package-query # pkgdeps.sh (9base = read command) #mimetype TODO get rid of this dependency
- tar xz bzip2 unrar gzip unzip p7zip cabextract #extract.sh
- arch-audit bc # risks.sh
- glibc # missinglibs.sh
- util-linux # killprocess.sh (kill command)
- stderred # bash.custom LD_PRELOAD
- gcc
- )
- makedepends=(git)
- source=(
- tputcolors.sh
- extract.sh
- findmatch.sh
- findpkg.sh
- findinpkg.sh
- genmac.sh
- getsource.sh # TODO: More implementation needed. See the file for details
- nowner.sh # TODO: More implementation needed. See the file for details
- pkgdeps.sh # TODO: More implementation needed. See the file for details
- archrisks.sh
- showpkg.sh
- deltmpfiles.sh
- missinglibs.sh
- buildpkg.sh
- pkginfo.sh
- bininfo.sh
- killprocess.sh
- specialchars.sh
- whichcmd.sh
- killns.sh
- psns.sh
- whichport.c
- whichservice.c
- bash.custom
- https://raw.github.com/trapd00r/LS_COLORS/master/LS_COLORS)
-
- if [[ $server_environment == "true" ]]; then
- # for ssh_timezone.sh
- depends+=(geoip2-database mmdblookup systemd openssh bind-tools)
- source+=(ssh_timezone.sh)
- fi
-
- sha256sums=('891d763f852d3a61216a384a15ca01c57178d3a5fea8aa858de0643998e9ba58'
- '3af9ef2fc156d2c62753f1bf902e31ce84fb5c7ccd3d978b176047ab281e2f08'
- '7bdfc3ec70ebb91b330f2239a86a6f7394c8c82b51263e5e96839f5f896707da'
- 'c96b43cc49e6872cdd3b6e51cb490ca8ea2d990f2c3545bed106a21df86648eb'
- '3bfac88603fe0f19383bc8b1ca7e2bc6795a90e851eaefd0758d515edd916100'
- '3cf521359e473256a52e2a9fbcbfa3f0d39f42befa2d9a79cb7c51372f925c7b'
- '43c15b4b18e6c43cab34fe905d2751525a505830e7c6e7286cedb7dfb408f815'
- '4031b9ffb038ba16dcf188dde3f45af4cd0efff647c1926b7a172a6262ec6bf6'
- '9993d81f56f526ab8813b268d5b3d3424f4950c05b2fc03c106d71788f043c0a'
- '6290400b493a6e498ffe4a457274c3c4da4de60f5f3043cb36d08c9ca29cce63'
- '4a9693bdc1d6a10e54266bf7b3d440e926d66c61ef6d18774a2db951aa4dd478'
- '8bbcb61e6283bda4988468271cbaee0d7c537342a095466b4ea309bcb782eaf2'
- 'ca1aae07f32fd9ba2a05ffa107d1ac97638578c9926359b323be56d911b54c17'
- '845c3f8c0069d7938f800fe6c2e473fd1359c0fd17a5c37cbd89bbcb89c10ae7'
- 'd3adffd099f5a3018b29cfb3899e5ba8ffe9d3584be5579b0edeae0818684e4d'
- 'ae13b022053b6a3d2977fac8fbf036b09dfcf107c20f9c97577a573cecc01de0'
- '434aa1eed4088f9bf86cef1f186b6444166e9d8367d4666a79d5c9edcf8dac2e'
- 'e5b8a59bcaa430f28bdd6503d4e34e57e44e429000c046d16caddcaa0fa5a30f'
- '96c0a6093ddc3c6946cd6aa2ce038a046bf658b834c2fe8f4e8a1c40b3149453'
- '6df52b55e5b7471d07fe2e2a6b40ddb2972bb7ff9e60911bd4f5fcdb0e07c860'
- 'ded8bbcb0267632bdbeb100468b412911f5b0d32541744acff94a81bc346c17d'
- '4d5a0fc2b8817f17d9f180a28970dfcd14b5aea2f0164bd6fbfed145bd009d29'
- '30ec1a5143e9b3353e34427539abd5e5b52e2c43e3e9dd730f566362caff2c9e'
- '93ee0e990f36a5641e4f9fb4ba851e3db47ff6f01fdfad8dd169b83c546ecae9'
- '40fd211e7b4a21ca61be81a809ee47f58adc6cd220218a20a0c7e65e1534c6ca')
-
- package() {
- mkdir -p "$pkgdir"/{usr/bin,etc}
-
- #cp -R "$srcdir"/"$pkgname"/*.sh "$pkgdir"/usr/bin/
- install -m644 "$srcdir"/LS_COLORS "$pkgdir"/etc/dircolors
- install -m644 "$srcdir"/bash.custom "$pkgdir"/etc/bash.custom
-
- for sh in ./*.sh; do
- install -m755 $sh "$pkgdir"/usr/bin/
- #chmod u=rwx,g=rx,o=rx $sh
- mv "$pkgdir"/usr/bin/$sh $(echo "$pkgdir"/usr/bin/$sh | sed 's/\.sh//')
- done
-
- for i in ./*.c; do
- gcc $i -o $(echo $i | sed 's/\.c$//')
- install -m755 $i "$pkgdir"/usr/bin/
- done
-
- msg2 '
-
- In /etc/bash.bashrc file, replace line
-
- PS1="[\\u@\\h \\W]\\$ "
-
- with
-
- [[ -f /etc/bash.custom ]] && . /etc/bash.custom || PS1="[\\u@\\h \\W]\\$ "
-
- After that, you can change bash settings globally by editing /etc/bash.custom file
- '
-
- #msg2 "You can change bash settings globally by editing /etc/bash.custom file"
-
- }
|