├── .bakerc ├── .gitignore ├── AUTHORS ├── License ├── README.md ├── TODO ├── bin ├── bake ├── bake-all ├── bake-clean ├── bashlibs ├── deb-repo-clean ├── release ├── setup └── verup ├── gentoo └── portage │ ├── dev-bash │ ├── bashlibs-apt │ │ ├── Manifest │ │ ├── bashlibs-apt-0.0.17.ebuild │ │ └── metadata.xml │ ├── bashlibs-base │ │ ├── Manifest │ │ ├── bashlibs-base-0.0.22.ebuild │ │ └── metadata.xml │ ├── bashlibs-build-utils │ │ ├── Manifest │ │ ├── bashlibs-build-utils-0.0.128.ebuild │ │ └── metadata.xml │ ├── bashlibs-checks │ │ ├── Manifest │ │ ├── bashlibs-checks-0.0.15.ebuild │ │ └── metadata.xml │ ├── bashlibs-checksum │ │ ├── Manifest │ │ ├── bashlibs-checksum-0.0.8.ebuild │ │ └── metadata.xml │ ├── bashlibs-chroot │ │ ├── Manifest │ │ ├── bashlibs-chroot-0.0.14.ebuild │ │ └── metadata.xml │ ├── bashlibs-cmake-macros │ │ ├── Manifest │ │ ├── bashlibs-cmake-macros-0.0.20.ebuild │ │ └── metadata.xml │ ├── bashlibs-cmdline │ │ ├── Manifest │ │ ├── bashlibs-cmdline-0.0.9.ebuild │ │ └── metadata.xml │ ├── bashlibs-code-clarity │ │ ├── Manifest │ │ ├── bashlibs-code-clarity-0.0.14.ebuild │ │ └── metadata.xml │ ├── bashlibs-colors │ │ ├── Manifest │ │ ├── bashlibs-colors-0.0.15.ebuild │ │ └── metadata.xml │ ├── bashlibs-config │ │ ├── Manifest │ │ ├── bashlibs-config-0.0.21.ebuild │ │ └── metadata.xml │ ├── bashlibs-date │ │ ├── Manifest │ │ ├── bashlibs-date-0.0.11.ebuild │ │ └── metadata.xml │ ├── bashlibs-directories │ │ ├── Manifest │ │ ├── bashlibs-directories-0.0.21.ebuild │ │ └── metadata.xml │ ├── bashlibs-disks │ │ ├── Manifest │ │ ├── bashlibs-disks-0.0.25.ebuild │ │ └── metadata.xml │ ├── bashlibs-dns │ │ ├── Manifest │ │ ├── bashlibs-dns-0.0.8.ebuild │ │ └── metadata.xml │ ├── bashlibs-file-manipulations │ │ ├── Manifest │ │ ├── bashlibs-file-manipulations-0.0.16.ebuild │ │ └── metadata.xml │ ├── bashlibs-gentoo │ │ ├── Manifest │ │ ├── bashlibs-gentoo-0.0.8.ebuild │ │ └── metadata.xml │ ├── bashlibs-git │ │ ├── Manifest │ │ ├── bashlibs-git-0.0.12.ebuild │ │ └── metadata.xml │ ├── bashlibs-grub │ │ ├── Manifest │ │ ├── bashlibs-grub-0.0.18.ebuild │ │ └── metadata.xml │ ├── bashlibs-initramfs │ │ ├── Manifest │ │ ├── bashlibs-initramfs-0.0.19.ebuild │ │ └── metadata.xml │ ├── bashlibs-kernel-cmdline │ │ ├── Manifest │ │ ├── bashlibs-kernel-cmdline-0.0.14.ebuild │ │ └── metadata.xml │ ├── bashlibs-kernel-modules │ │ ├── Manifest │ │ ├── bashlibs-kernel-modules-0.0.3.ebuild │ │ └── metadata.xml │ ├── bashlibs-kernel-versioning │ │ ├── Manifest │ │ ├── bashlibs-kernel-versioning-0.0.11.ebuild │ │ └── metadata.xml │ ├── bashlibs-libvirt │ │ ├── Manifest │ │ ├── bashlibs-libvirt-0.0.27.ebuild │ │ └── metadata.xml │ ├── bashlibs-math │ │ ├── Manifest │ │ ├── bashlibs-math-0.0.9.ebuild │ │ └── metadata.xml │ ├── bashlibs-net │ │ ├── Manifest │ │ ├── bashlibs-net-0.0.24.ebuild │ │ └── metadata.xml │ ├── bashlibs-os-detection │ │ ├── Manifest │ │ ├── bashlibs-os-detection-0.0.20.ebuild │ │ └── metadata.xml │ ├── bashlibs-qemu │ │ ├── Manifest │ │ ├── bashlibs-qemu-0.0.27.ebuild │ │ └── metadata.xml │ ├── bashlibs-shunit2-enhancements │ │ ├── Manifest │ │ ├── bashlibs-shunit2-enhancements-0.0.25.ebuild │ │ └── metadata.xml │ ├── bashlibs-ssh │ │ ├── Manifest │ │ ├── bashlibs-ssh-0.0.32.ebuild │ │ └── metadata.xml │ ├── bashlibs-string │ │ ├── Manifest │ │ ├── bashlibs-string-0.0.22.ebuild │ │ └── metadata.xml │ ├── bashlibs-sysfs │ │ ├── Manifest │ │ ├── bashlibs-sysfs-0.0.13.ebuild │ │ └── metadata.xml │ ├── bashlibs-templates │ │ ├── Manifest │ │ ├── bashlibs-templates-0.0.1.ebuild │ │ └── metadata.xml │ ├── bashlibs-tests │ │ ├── Manifest │ │ ├── bashlibs-tests-0.0.1.ebuild │ │ └── metadata.xml │ ├── bashlibs-usage │ │ ├── Manifest │ │ ├── bashlibs-usage-0.0.22.ebuild │ │ └── metadata.xml │ ├── bashlibs-user │ │ ├── Manifest │ │ ├── bashlibs-user-0.0.9.ebuild │ │ └── metadata.xml │ ├── bashlibs-utils │ │ ├── Manifest │ │ ├── bashlibs-utils-0.0.22.ebuild │ │ └── metadata.xml │ ├── bashlibs-verbose │ │ ├── Manifest │ │ ├── bashlibs-verbose-0.0.34.ebuild │ │ └── metadata.xml │ └── bashlibs-versions │ │ ├── Manifest │ │ ├── bashlibs-versions-0.0.9.ebuild │ │ └── metadata.xml │ ├── dev-util │ └── cmake-macros │ │ ├── Manifest │ │ ├── cmake-macros-0.0.15.ebuild │ │ └── metadata.xml │ ├── eclass │ └── bashlibs.eclass │ ├── metadata │ └── layout.conf │ ├── profiles │ ├── categories │ └── repo_name │ └── sys-apps │ └── colorized-logs │ ├── Manifest │ ├── colorized-logs-2.4.ebuild │ └── metadata.xml ├── git-hooks └── prepare-commit-msg └── src ├── bashlibs-apt ├── .bakerc ├── AUTHORS ├── CMakeLists.txt ├── License ├── README ├── TODO ├── lib │ ├── apt.sh │ └── apt_cmd.sh ├── test │ ├── test_apt.sh │ └── test_apt_cmd.sh └── version ├── bashlibs-base ├── .bakerc ├── AUTHORS ├── CMakeLists.txt ├── License ├── README ├── TODO ├── lib │ ├── base.sh │ ├── header.sh │ └── include.sh └── version ├── bashlibs-build-utils ├── .bakerc ├── AUTHORS ├── CMakeLists.txt ├── License ├── README ├── TODO ├── bake-intree-init ├── bin │ ├── bake │ ├── bake-all │ ├── bake-clean │ ├── bake-ebuilds-eapi-change │ ├── deb-repo-clean │ ├── ver-reset │ └── verup ├── lib │ ├── bake.sh │ ├── bake_cmake.sh │ ├── bake_cmdline.sh │ ├── bake_config.sh │ ├── bake_debian.sh │ ├── bake_gentoo.sh │ ├── bake_test.sh │ ├── deb_repository.sh │ └── package_build.sh ├── test │ ├── test_bake_cmake.sh │ ├── test_bake_cmdline.sh │ ├── test_bake_config.sh │ ├── test_bake_debian.sh │ ├── test_bake_gentoo.sh │ ├── test_bake_test.sh │ ├── test_deb_repository.sh │ └── test_package_build.sh └── version ├── bashlibs-checks ├── .bakerc ├── AUTHORS ├── CMakeLists.txt ├── License ├── README ├── TODO ├── lib │ └── checks.sh ├── test │ └── test_checks.sh └── version ├── bashlibs-checksum ├── .bakerc ├── AUTHORS ├── CMakeLists.txt ├── License ├── README ├── TODO ├── lib │ └── checksum.sh ├── test │ └── test_checksum.sh └── version ├── bashlibs-chroot ├── .bakerc ├── AUTHORS ├── CMakeLists.txt ├── License ├── README ├── TODO ├── lib │ └── chroot.sh ├── test │ └── test_chroot.sh └── version ├── bashlibs-cmake-macros ├── .bakerc ├── AUTHORS ├── CMakeLists.txt ├── License ├── Modules │ └── BashLibs.cmake ├── README ├── TODO └── version ├── bashlibs-cmdline ├── .bakerc ├── AUTHORS ├── CMakeLists.txt ├── License ├── README ├── TODO ├── lib │ └── cmdline.sh ├── test │ └── test_cmdline.sh └── version ├── bashlibs-code-clarity ├── .bakerc ├── AUTHORS ├── CMakeLists.txt ├── License ├── README ├── TODO ├── lib │ └── code_clarity.sh ├── test │ └── test_code_clarity.sh └── version ├── bashlibs-colors ├── .bakerc ├── AUTHORS ├── CMakeLists.txt ├── License ├── README ├── TODO ├── lib │ └── colors.sh ├── test │ └── test_colors.sh └── version ├── bashlibs-config ├── .bakerc ├── AUTHORS ├── CMakeLists.txt ├── License ├── README ├── TODO ├── lib │ └── config.sh ├── test │ └── test_config.sh └── version ├── bashlibs-date ├── .bakerc ├── AUTHORS ├── CMakeLists.txt ├── License ├── README ├── TODO ├── lib │ └── date.sh ├── test │ └── test_date.sh └── version ├── bashlibs-directories ├── .bakerc ├── AUTHORS ├── CMakeLists.txt ├── License ├── README ├── TODO ├── lib │ └── directories.sh ├── test │ └── test_directories.sh └── version ├── bashlibs-disks ├── .bakerc ├── AUTHORS ├── CMakeLists.txt ├── License ├── README ├── TODO ├── lib │ └── disks.sh ├── test │ └── test_disks.sh └── version ├── bashlibs-dns ├── .bakerc ├── AUTHORS ├── CMakeLists.txt ├── License ├── README ├── TODO ├── lib │ └── hosts.sh ├── test │ └── test_hosts.sh └── version ├── bashlibs-file-manipulations ├── .bakerc ├── AUTHORS ├── CMakeLists.txt ├── License ├── README ├── TODO ├── lib │ └── file_manipulations.sh ├── test │ └── test_file_manipulations.sh └── version ├── bashlibs-gentoo ├── .bakerc ├── AUTHORS ├── CMakeLists.txt ├── License ├── README ├── TODO ├── lib │ ├── openrc.sh │ └── portage.sh ├── test │ ├── files │ │ └── emerge_info.txt │ ├── test_openrc.sh │ └── test_portage.sh └── version ├── bashlibs-git ├── .bakerc ├── AUTHORS ├── CMakeLists.txt ├── License ├── README ├── TODO ├── lib │ └── git.sh ├── test │ └── test_git.sh └── version ├── bashlibs-grub ├── .bakerc ├── AUTHORS ├── CMakeLists.txt ├── License ├── README ├── TODO ├── lib │ └── grub.sh ├── test │ └── test_grub.sh └── version ├── bashlibs-initramfs ├── .bakerc ├── AUTHORS ├── CMakeLists.txt ├── License ├── README ├── TODO ├── lib │ └── initramfs.sh ├── test │ └── test_initramfs.sh └── version ├── bashlibs-kernel-cmdline ├── .bakerc ├── AUTHORS ├── CMakeLists.txt ├── License ├── README ├── TODO ├── lib │ └── kernel_cmdline.sh ├── test │ └── test_kernel_cmdline.sh └── version ├── bashlibs-kernel-modules ├── .bakerc ├── AUTHORS ├── CMakeLists.txt ├── License ├── README ├── TODO ├── lib │ └── kernel_modules.sh ├── test │ ├── files │ │ └── lsmod.txt │ └── test_kernel_modules.sh └── version ├── bashlibs-kernel-versioning ├── .bakerc ├── AUTHORS ├── CMakeLists.txt ├── License ├── README ├── TODO ├── lib │ └── kernel_versioning.sh ├── test │ └── test_kernel_versioning.sh └── version ├── bashlibs-libvirt ├── .bakerc ├── AUTHORS ├── CMakeLists.txt ├── License ├── README ├── TODO ├── lib │ └── libvirt.sh ├── test │ └── test_libvirt.sh └── version ├── bashlibs-math ├── .bakerc ├── AUTHORS ├── CMakeLists.txt ├── License ├── lib │ └── math.sh ├── test │ └── test_math.sh └── version ├── bashlibs-net ├── .bakerc ├── AUTHORS ├── CMakeLists.txt ├── License ├── README ├── TODO ├── lib │ ├── net.sh │ └── net_sysfs.sh ├── test │ ├── support_net.sh │ ├── test_net.sh │ └── test_net_sysfs.sh └── version ├── bashlibs-os-detection ├── .bakerc ├── AUTHORS ├── CMakeLists.txt ├── License ├── README ├── TODO ├── lib │ ├── os_detection.sh │ └── ubuntu_naming.sh ├── test │ └── test_os_detection.sh └── version ├── bashlibs-qemu ├── .bakerc ├── AUTHORS ├── CMakeLists.txt ├── License ├── README ├── TODO ├── lib │ └── qemu.sh ├── test │ └── test_qemu.sh └── version ├── bashlibs-shunit2-enhancements ├── .bakerc ├── AUTHORS ├── CMakeLists.txt ├── License ├── README ├── TODO ├── lib │ └── shunit2_enhancements.sh └── version ├── bashlibs-skel ├── .bake_ignore_below ├── .bakerc ├── TODO ├── bin │ └── new-bashlibs.sh └── skelaton │ ├── AUTHORS │ ├── CMakeLists.txt │ ├── License │ ├── README │ ├── TODO │ ├── lib │ └── project_name.sh │ ├── test │ └── test_project_name.sh │ └── version ├── bashlibs-ssh ├── .bakerc ├── AUTHORS ├── CMakeLists.txt ├── License ├── README ├── TODO ├── lib │ └── ssh.sh ├── test │ └── test_ssh.sh └── version ├── bashlibs-string ├── .bakerc ├── AUTHORS ├── CMakeLists.txt ├── License ├── README ├── TODO ├── lib │ └── string.sh ├── test │ └── test_string.sh └── version ├── bashlibs-sysfs ├── .bakerc ├── AUTHORS ├── CMakeLists.txt ├── License ├── README ├── TODO ├── lib │ └── sysfs.sh ├── test │ └── test_sysfs.sh └── version ├── bashlibs-templates ├── .bakerc ├── AUTHORS ├── CMakeLists.txt ├── License ├── README ├── TODO ├── lib │ └── templates.sh ├── test │ ├── files │ │ └── simple.template │ └── test_templates.sh └── version ├── bashlibs-tests ├── .bakerc ├── AUTHORS ├── CMakeLists.txt ├── License ├── README ├── TODO ├── lib │ └── tests.sh └── version ├── bashlibs-usage ├── .bakerc ├── AUTHORS ├── CMakeLists.txt ├── License ├── README ├── TODO ├── lib │ └── usage.sh ├── test │ └── test_usage.sh └── version ├── bashlibs-user ├── .bakerc ├── AUTHORS ├── CMakeLists.txt ├── License ├── README ├── TODO ├── lib │ └── user.sh ├── test │ └── test_user.sh └── version ├── bashlibs-utils ├── .bakerc ├── AUTHORS ├── CMakeLists.txt ├── License ├── README ├── TODO ├── bin │ └── bashlibs └── version ├── bashlibs-verbose ├── .bakerc ├── AUTHORS ├── CMakeLists.txt ├── License ├── README ├── TODO ├── lib │ ├── nice_header.sh │ └── verbose.sh ├── test │ ├── test_nice_header.sh │ └── test_verbose.sh └── version ├── bashlibs-versions ├── .bakerc ├── AUTHORS ├── CMakeLists.txt ├── License ├── README ├── TODO ├── lib │ └── versions.sh ├── test │ └── test_versions.sh └── version └── cmake-macros ├── AUTHORS ├── CMakeLists.txt ├── License ├── Modules ├── CPackSimple.cmake ├── InstallDocs.cmake ├── OSDetection.cmake ├── PackageCreator.cmake └── SetAppVersion.cmake ├── README └── version /.bakerc: -------------------------------------------------------------------------------- 1 | TOP_RC=1 2 | PORTAGE_TREE=gentoo/portage 3 | PORTAGE_TREE_NAME=bashlibs 4 | 5 | PRE_COMPILE_DEPEND="build-essential cmake shunit2 $PRE_COMPILE_DEPEND" 6 | PRE_COMPILE_DEPEND_IN_TRANSITION="realpath $PRE_COMPILE_DEPEND_IN_TRANSITION" 7 | 8 | ALL_REPOSITORIES="bashlibs" 9 | REPOSITORY_COLOR_bashlibs="red" 10 | 11 | REPOSITORIES_NAMES="bashlibs" 12 | 13 | PROJECTS_ORDER=" 14 | cmake-macros 15 | bashlibs-cmake-macros 16 | bashlibs-shunit2-enhancements 17 | bashlibs-colors 18 | bashlibs-verbose 19 | bashlibs-usage 20 | bashlibs-directories 21 | bashlibs-file-manipulations 22 | bashlibs-code-clarity 23 | bashlibs-base 24 | bashlibs-utils 25 | bashlibs-date 26 | bashlibs-grub 27 | bashlibs-initramfs 28 | bashlibs-math 29 | bashlibs-os-detection 30 | bashlibs-string 31 | bashlibs-build-utils 32 | bashlibs-kernel-cmdline 33 | bashlibs-disks 34 | bashlibs-qemu 35 | bashlibs-chroot 36 | bashlibs-kernel-versioning 37 | bashlibs-config 38 | bashlibs-ssh 39 | bashlibs-apt 40 | bashlibs-net 41 | bashlibs-sysfs 42 | bashlibs-cmdline 43 | bashlibs-user 44 | bashlibs-versions 45 | bashlibs-checks 46 | bashlibs-checksum 47 | bashlibs-libvirt 48 | bashlibs-dns 49 | bashlibs-git 50 | bashlibs-kernel-modules 51 | bashlibs-gentoo 52 | " 53 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.swp 2 | *.orig 3 | ChangeLog 4 | gentoo/distfiles 5 | debian 6 | repositories 7 | -------------------------------------------------------------------------------- /AUTHORS: -------------------------------------------------------------------------------- 1 | Kfir Lavi 2 | -------------------------------------------------------------------------------- /License: -------------------------------------------------------------------------------- 1 | Copyright (c) 2013 ,2014 ,2015 ,2016 ,2017 ,2018 ,2019 ,2020 ,2021 2 | 2022, 2023 Kfir Lavi All rights reserved. 3 | 4 | Redistribution and use in source and binary forms, with or without 5 | modification, are permitted provided that the following conditions are met: 6 | 7 | 1. Redistributions of source code must retain the above copyright notice, 8 | this list of conditions and the following disclaimer. 9 | 2. Redistributions in binary form must reproduce the above copyright 10 | notice, this list of conditions and the following disclaimer in the 11 | documentation and/or other materials provided with the distribution. 12 | 3. Neither the name of Kfir Lavi nor the names of its 13 | contributors may be used to endorse or promote products derived from 14 | this software without specific prior written permission. 15 | 16 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 17 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 18 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 19 | ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 20 | LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 21 | CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 22 | SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 23 | INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 24 | CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 25 | ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 26 | POSSIBILITY OF SUCH DAMAGE. 27 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # After cloning 2 | To setup repository you should run: 3 | `$ cd bashlibs.git` 4 | `$ bin/setup` 5 | 6 | # Generate bashlibs repository 7 | `$ bin/bake-all --server a --server b -s c -s d ...` 8 | 9 | hosts are a debian/ubuntu or a gentoo 10 | 11 | for each host it will generate all packages. 12 | 13 | For example: 14 | you have 3 hosts: ubuntu32 ubuntu64 and gentoo 15 | 16 | `$ bin/bake-all -s ubuntu32 -s ubuntu64 -s gentoo` 17 | 18 | will generate deb repository for i386 and amd64, 19 | then will create a gentoo repository and source packages. 20 | 21 | ## Commands to start over at the servers 22 | * delete all bashlibs packages on ubuntu 23 | ``` 24 | dpkg --configure -a; apt-get purge $(dpkg -l | grep bashlibs | awk '{print $2}') -y ; apt-get autoremove -y 25 | ``` 26 | * delete all bashlibs packages from gentoo 27 | ``` 28 | emerge -q -C $(eix --only-names bashlibs) 29 | ``` 30 | -------------------------------------------------------------------------------- /TODO: -------------------------------------------------------------------------------- 1 | * move all todos here to githubs issues system 2 | * write blog post with examples 3 | * run tests by package name: 4 | $ bashlibs -t build-utils 5 | 6 | * generated repositories dir by bake should be in git root dir 7 | * ssh functions in build-utils should be extracted to ssh library 8 | * bake --no-color not working 9 | * git hook script should have a way to install it 10 | * show .bakerc content when running bake in debug mode 11 | * gentoo ebuild should run tests and implement 'test' use flag 12 | * add debug statements for debugging ease to bake 13 | * when building on gentoo, we need to have just package creation without installing 14 | * implement parallel project build on seperate servers 15 | * move all -v -t -x -h -q to a seperate function 16 | 17 | * move print_ruller and print_header to library 18 | -------------------------------------------------------------------------------- /bin/bake: -------------------------------------------------------------------------------- 1 | ../src/bashlibs-build-utils/bin/bake -------------------------------------------------------------------------------- /bin/bake-all: -------------------------------------------------------------------------------- 1 | ../src/bashlibs-build-utils/bin/bake-all -------------------------------------------------------------------------------- /bin/bake-clean: -------------------------------------------------------------------------------- 1 | ../src/bashlibs-build-utils/bin/bake-clean -------------------------------------------------------------------------------- /bin/bashlibs: -------------------------------------------------------------------------------- 1 | ../src/bashlibs-utils/bin/bashlibs -------------------------------------------------------------------------------- /bin/deb-repo-clean: -------------------------------------------------------------------------------- 1 | ../src/bashlibs-build-utils/bin/deb-repo-clean -------------------------------------------------------------------------------- /bin/release: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | source $(cd $(dirname $0)/.. ; pwd)/src/bashlibs-build-utils/bin/bashlibs-intree-init > /dev/null 2>&1 \ 3 | || $(bashlibs --load-base) 4 | include deb_repository.sh 5 | include verbose.sh 6 | include date.sh 7 | include verbose.sh 8 | include checksum.sh 9 | 10 | release_dir() { 11 | create_dir_if_needed \ 12 | $(repository_dir)/../release/tbz 13 | } 14 | 15 | iso_dir() { 16 | create_dir_if_needed \ 17 | $(repository_dir)/../release/iso 18 | } 19 | 20 | filename_prefix() { 21 | echo $(date_time_str)-$(repository_name) 22 | } 23 | 24 | tar_filename() { 25 | echo $(release_dir)/$(filename_prefix).tar.gz 26 | } 27 | 28 | iso_filename() { 29 | echo $(iso_dir)/$(filename_prefix).iso 30 | } 31 | 32 | create_release_tar() { 33 | cd $(repository_dir)/.. 34 | 35 | tar czf \ 36 | $(tar_filename) \ 37 | $(repository_name) 38 | 39 | cd - > /dev/null 2>&1 40 | 41 | vinfo "Release file created: $(tar_filename)" 42 | } 43 | 44 | create_iso() { 45 | genisoimage \ 46 | -o $(iso_filename) \ 47 | -R -J -joliet-long \ 48 | $(release_dir) 49 | 50 | vinfo "ISO image created: $(iso_filename)" 51 | } 52 | 53 | burn() { 54 | wodim -multi -tao $(iso_filename) 55 | } 56 | 57 | main() { 58 | create_repository 59 | create_release_tar 60 | create_md5 $(tar_filename) 61 | 62 | create_iso 63 | create_md5 $(iso_filename) 64 | 65 | [[ $(args) =~ burn ]] \ 66 | && burn 67 | } 68 | main 69 | -------------------------------------------------------------------------------- /bin/setup: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | my_real_dir() { 3 | if [[ $(type -t progdir) == function ]] 4 | then 5 | progdir 6 | else 7 | dirname $(realpath $(echo $0 | sed "s/$(basename $0)/bake/")) 8 | fi 9 | } 10 | 11 | source $(my_real_dir)/bake-intree-init > /dev/null 2>&1 \ 12 | || $(bashlibs --load-base) 13 | include verbose.sh 14 | set_verbose_level_to_info 15 | include bake_config.sh 16 | 17 | main() { 18 | rsync -av \ 19 | $(progdir)/../git-hooks/ \ 20 | $(progdir)/../.git/hooks/ 21 | } 22 | main 23 | -------------------------------------------------------------------------------- /bin/verup: -------------------------------------------------------------------------------- 1 | ../src/bashlibs-build-utils/bin/verup -------------------------------------------------------------------------------- /gentoo/portage/dev-bash/bashlibs-apt/Manifest: -------------------------------------------------------------------------------- 1 | DIST bashlibs-apt-0.0.17-Source.tar.bz2 4134 BLAKE2B 1fc64304756b462abce21f397bbd6d811230cdd5a061ea0fce0ec3f67aee6db71066a3d0720fb9d95a751ea531bed4706b45f6e5349afc1a84e2cfc901f40a07 SHA512 8baac869ef954ca90e0f898a3561789eaa722f5ecf5276ba0f019c95b6d9684ebe80349c090055c0ae01a4371db5e5abf3dfb228d706aad7c160a79ad62c65e7 2 | EBUILD bashlibs-apt-0.0.17.ebuild 424 BLAKE2B da5680aea2098bac056e9e88a7765329f35e5ec3b739a34afc4f36664d6c5931e33a792b97083f75c5000913c07a5660b913362d03778aa6ca1427c93b6e32b4 SHA512 407eaa0111a65bf768854fd67e06b9d5c0c2ab24cb06e2077c768b258c0032b1a164bdd79d049d42b33137f9326b8a2a5322cda261d4fa64991decac17f60732 3 | MISC metadata.xml 219 BLAKE2B 17b641dad1660cbc5e67776263d4164d63bd53254ba483643ab88588ae96c58dc67ad3fdc61cf3532c854a6d8e023424a6a6331bc7fa01c5c0fb3f1e1a00f51a SHA512 61786b8f8e03cc5864ea421c7fa9e0fb1983cbc0f4cd34d3816b1d280f93e15809b8e6aed46ba139ab6101e0761292feab1f8079f8965bbfe19ded414a4b7736 4 | -------------------------------------------------------------------------------- /gentoo/portage/dev-bash/bashlibs-apt/bashlibs-apt-0.0.17.ebuild: -------------------------------------------------------------------------------- 1 | # Copyright 1999-2020 Gentoo Authors 2 | # Distributed under the terms of the GNU General Public License v2 3 | 4 | EAPI=7 5 | 6 | inherit bashlibs 7 | 8 | DESCRIPTION="library for interfacing apt and apt-get" 9 | HOMEPAGE="https://github.com/kfirlavi/bashlibs" 10 | 11 | LICENSE="BSD" 12 | SLOT="0" 13 | KEYWORDS="amd64 x86" 14 | IUSE="" 15 | 16 | RDEPEND=" 17 | >=dev-bash/bashlibs-utils-0.0.6 18 | >=dev-bash/bashlibs-shunit2-enhancements-0.0.2 19 | " 20 | 21 | DEPEND=" 22 | dev-bash/bashlibs-cmake-macros 23 | " 24 | -------------------------------------------------------------------------------- /gentoo/portage/dev-bash/bashlibs-apt/metadata.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | lavi.kfir@gmail.com 6 | 7 | 8 | -------------------------------------------------------------------------------- /gentoo/portage/dev-bash/bashlibs-base/Manifest: -------------------------------------------------------------------------------- 1 | DIST bashlibs-base-0.0.22-Source.tar.bz2 4763 BLAKE2B 7274c0144d1527abed5059cb1726fd73309e9d44c7dae34087a4bb015344b45b532b4f6cbd8a133c89b416edb9ad0e511d5bac70dd078f9fcba489851ce8a94d SHA512 38c7ea94b04cb83ffae59e81540103a6771a46abc22df2d11803c8bd840d39c31c369ebcf1451d872cad9b3efaa54cbf9299b919ff2c7e76cff0a6a2b4dcae9e 2 | EBUILD bashlibs-base-0.0.22.ebuild 440 BLAKE2B 222f2ff7f62698e2f33cf652f35cf05dd68b90eb1b3523194644334bb7a3c4347d36b0cdd12656bd55e9bbfb05a8b928dc5de72a78baed65b5b55fbad405cfea SHA512 16c77586df5730788692cb0cfd66e1bdcf6248ca341e2ba57cabcc61bc4d7335d21794c2f0ba8477b73a292f3bbd93b17243012bc3f27480e906576d10883de1 3 | MISC metadata.xml 219 BLAKE2B 17b641dad1660cbc5e67776263d4164d63bd53254ba483643ab88588ae96c58dc67ad3fdc61cf3532c854a6d8e023424a6a6331bc7fa01c5c0fb3f1e1a00f51a SHA512 61786b8f8e03cc5864ea421c7fa9e0fb1983cbc0f4cd34d3816b1d280f93e15809b8e6aed46ba139ab6101e0761292feab1f8079f8965bbfe19ded414a4b7736 4 | -------------------------------------------------------------------------------- /gentoo/portage/dev-bash/bashlibs-base/bashlibs-base-0.0.22.ebuild: -------------------------------------------------------------------------------- 1 | # Copyright 1999-2020 Gentoo Authors 2 | # Distributed under the terms of the GNU General Public License v2 3 | 4 | EAPI=7 5 | 6 | inherit bashlibs 7 | 8 | DESCRIPTION="bashlibs common" 9 | HOMEPAGE="https://github.com/kfirlavi/bashlibs" 10 | 11 | LICENSE="BSD" 12 | SLOT="0" 13 | KEYWORDS="amd64 x86" 14 | IUSE="" 15 | 16 | RDEPEND=" 17 | >=dev-bash/bashlibs-utils-0.0.6 18 | >=dev-bash/bashlibs-shunit2-enhancements-0.0.2 19 | >=dev-bash/bashlibs-code-clarity-0.0.2 20 | " 21 | 22 | DEPEND=" 23 | dev-bash/bashlibs-cmake-macros 24 | " 25 | -------------------------------------------------------------------------------- /gentoo/portage/dev-bash/bashlibs-base/metadata.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | lavi.kfir@gmail.com 6 | 7 | 8 | -------------------------------------------------------------------------------- /gentoo/portage/dev-bash/bashlibs-build-utils/Manifest: -------------------------------------------------------------------------------- 1 | DIST bashlibs-build-utils-0.0.128-Source.tar.bz2 24827 BLAKE2B 5beb8137a74c049655e7726ddd9b6372de8bb342c385ea1b03b8e5993d4fa14f8d7c6071ac47ed68164027fde41136f701c6bd162ee298b4d08dc74783bde9e1 SHA512 f412b816e9015f744b1b9da03508be2373ddbb283f24e3ec4369e2bef9ca94a632f7842125cb9173274c0a227c14069241aed1db0c094e6f0eaa691189ad5e8d 2 | EBUILD bashlibs-build-utils-0.0.128.ebuild 753 BLAKE2B ce2b578582ff047eed412c9a83750e2b1225265bb02876c5bad31cd19e51e67fcc8c3f92e4dc756458090b2b725c01fc57e0e0c876bbde97c12c672efdf4cd92 SHA512 26095139e6a115e14c6a7d619d91c8255614c1bfac74da2791115c89b96966363c14c9aee6e6e6fce267c30d025145e3c9792d1c7753c0b87d27a672c5578fd5 3 | MISC metadata.xml 219 BLAKE2B 17b641dad1660cbc5e67776263d4164d63bd53254ba483643ab88588ae96c58dc67ad3fdc61cf3532c854a6d8e023424a6a6331bc7fa01c5c0fb3f1e1a00f51a SHA512 61786b8f8e03cc5864ea421c7fa9e0fb1983cbc0f4cd34d3816b1d280f93e15809b8e6aed46ba139ab6101e0761292feab1f8079f8965bbfe19ded414a4b7736 4 | -------------------------------------------------------------------------------- /gentoo/portage/dev-bash/bashlibs-build-utils/bashlibs-build-utils-0.0.128.ebuild: -------------------------------------------------------------------------------- 1 | # Copyright 1999-2020 Gentoo Authors 2 | # Distributed under the terms of the GNU General Public License v2 3 | 4 | EAPI=7 5 | 6 | inherit bashlibs 7 | 8 | DESCRIPTION="bashlibs build utils for building bashlibs packages" 9 | HOMEPAGE="https://github.com/kfirlavi/bashlibs" 10 | 11 | LICENSE="BSD" 12 | SLOT="0" 13 | KEYWORDS="amd64 x86" 14 | IUSE="" 15 | 16 | RDEPEND=" 17 | >=dev-bash/bashlibs-base-0.0.10 18 | >=dev-bash/bashlibs-os-detection-0.0.20 19 | >=dev-bash/bashlibs-utils-0.0.11 20 | >=dev-bash/bashlibs-checks-0.0.11 21 | >=dev-bash/bashlibs-usage-0.0.12 22 | >=dev-bash/bashlibs-verbose-0.0.25 23 | >=dev-bash/bashlibs-ssh-0.0.32 24 | dev-bash/bashlibs-cmdline 25 | >=dev-bash/bashlibs-shunit2-enhancements-0.0.20 26 | >=dev-bash/bashlibs-directories-0.0.4 27 | app-arch/dpkg 28 | app-text/tree 29 | " 30 | 31 | DEPEND=" 32 | >=dev-bash/bashlibs-cmake-macros-0.0.5 33 | " 34 | -------------------------------------------------------------------------------- /gentoo/portage/dev-bash/bashlibs-build-utils/metadata.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | lavi.kfir@gmail.com 6 | 7 | 8 | -------------------------------------------------------------------------------- /gentoo/portage/dev-bash/bashlibs-checks/Manifest: -------------------------------------------------------------------------------- 1 | DIST bashlibs-checks-0.0.15-Source.tar.bz2 4299 BLAKE2B 5fcc616b46377f7f8fc2c999b2f2ad7f4161fd6fb4176372cedcb50a5c34c29bd7a5da479cf7b2eb3e8bc31d07cf98bbeb3e2db4a130c0d277f0f3d46e3ffd70 SHA512 f782481577d4a6656ebc9efc40277fc788edbf25f7aeed57979e8ab39bbf51ce83ea4c97ea2df372463d8b2671eb11cb3eb07e07c1c842315e18746b738f3a2e 2 | EBUILD bashlibs-checks-0.0.15.ebuild 468 BLAKE2B c6c07eda59b1dc6850bf69022328cd653dcd614b10899deb2fcbca9a70f45c07b7a6cca895615f7abf237f79d827d3d472be187ef574dda298096543064cfd63 SHA512 0c087c493739c26121d646d13f6e4e4736b47fc3bce7648e948209c79a59fbed21d5dd68b334ac1160e570f49f5d02c670f400c47480e25191c33e6f2a5ca40b 3 | MISC metadata.xml 219 BLAKE2B 17b641dad1660cbc5e67776263d4164d63bd53254ba483643ab88588ae96c58dc67ad3fdc61cf3532c854a6d8e023424a6a6331bc7fa01c5c0fb3f1e1a00f51a SHA512 61786b8f8e03cc5864ea421c7fa9e0fb1983cbc0f4cd34d3816b1d280f93e15809b8e6aed46ba139ab6101e0761292feab1f8079f8965bbfe19ded414a4b7736 4 | -------------------------------------------------------------------------------- /gentoo/portage/dev-bash/bashlibs-checks/bashlibs-checks-0.0.15.ebuild: -------------------------------------------------------------------------------- 1 | # Copyright 1999-2020 Gentoo Authors 2 | # Distributed under the terms of the GNU General Public License v2 3 | 4 | EAPI=7 5 | 6 | inherit bashlibs 7 | 8 | DESCRIPTION="bashlib for handling qemu files and qemu in general" 9 | HOMEPAGE="https://github.com/kfirlavi/bashlibs" 10 | 11 | LICENSE="BSD" 12 | SLOT="0" 13 | KEYWORDS="amd64 x86" 14 | IUSE="" 15 | 16 | RDEPEND=" 17 | >=dev-bash/bashlibs-utils-0.0.6 18 | dev-bash/bashlibs-directories 19 | >=dev-bash/bashlibs-shunit2-enhancements-0.0.15 20 | " 21 | 22 | DEPEND=" 23 | dev-bash/bashlibs-cmake-macros 24 | " 25 | -------------------------------------------------------------------------------- /gentoo/portage/dev-bash/bashlibs-checks/metadata.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | lavi.kfir@gmail.com 6 | 7 | 8 | -------------------------------------------------------------------------------- /gentoo/portage/dev-bash/bashlibs-checksum/Manifest: -------------------------------------------------------------------------------- 1 | DIST bashlibs-checksum-0.0.8-Source.tar.bz2 3244 BLAKE2B 45e27abcdb3b74e1012eede1b8528596e7dbe4654d498fd9b39c1df5c69f5870a72eee928a4e4fff39bca37384db8f4d34097d817a1aa0dd2cab9268348170e1 SHA512 1fc31aaf79bc1f79d8fec7e9318e115252603bab8d83a54d45a9cb56faf00d286c97b97645ab9338677cc5daa864fcc1c574c8c9da473cf32d85e23d50f7ef17 2 | EBUILD bashlibs-checksum-0.0.8.ebuild 468 BLAKE2B ae8119ed8414523b1170d89c142befd1d87d1d161ec945312b1f792d9c05014184ea706c5784e6738075fc61e54b81933a1231b0acab89c3dafe5b6727de3678 SHA512 590b0d692f4c1258e4660edaf364dd0821b7dd507494297adae063a3ba94caf6a30ba53fd5325f79b593079d8a052b737308144700b5f0d1f4e0bd0624397082 3 | MISC metadata.xml 219 BLAKE2B 17b641dad1660cbc5e67776263d4164d63bd53254ba483643ab88588ae96c58dc67ad3fdc61cf3532c854a6d8e023424a6a6331bc7fa01c5c0fb3f1e1a00f51a SHA512 61786b8f8e03cc5864ea421c7fa9e0fb1983cbc0f4cd34d3816b1d280f93e15809b8e6aed46ba139ab6101e0761292feab1f8079f8965bbfe19ded414a4b7736 4 | -------------------------------------------------------------------------------- /gentoo/portage/dev-bash/bashlibs-checksum/bashlibs-checksum-0.0.8.ebuild: -------------------------------------------------------------------------------- 1 | # Copyright 1999-2020 Gentoo Authors 2 | # Distributed under the terms of the GNU General Public License v2 3 | 4 | EAPI=7 5 | 6 | inherit bashlibs 7 | 8 | DESCRIPTION="bashlib for handling qemu files and qemu in general" 9 | HOMEPAGE="https://github.com/kfirlavi/bashlibs" 10 | 11 | LICENSE="BSD" 12 | SLOT="0" 13 | KEYWORDS="amd64 x86" 14 | IUSE="" 15 | 16 | RDEPEND=" 17 | >=dev-bash/bashlibs-utils-0.0.6 18 | >=dev-bash/bashlibs-shunit2-enhancements-0.0.15 19 | dev-bash/bashlibs-directories 20 | " 21 | 22 | DEPEND=" 23 | dev-bash/bashlibs-cmake-macros 24 | " 25 | -------------------------------------------------------------------------------- /gentoo/portage/dev-bash/bashlibs-checksum/metadata.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | lavi.kfir@gmail.com 6 | 7 | 8 | -------------------------------------------------------------------------------- /gentoo/portage/dev-bash/bashlibs-chroot/Manifest: -------------------------------------------------------------------------------- 1 | DIST bashlibs-chroot-0.0.14-Source.tar.bz2 4324 BLAKE2B 8de9cce2d99dcc079cb92b4857e53958b45d3f04141e71cdee99c54bb5e53b0901e2df487ed2111c9c8e8b63699110446724a001e8cba5cce3545521b220c166 SHA512 3a64fbe50f7d4ce12d8ec8d38305cb3fdfec9b8ec06c3bc8d83d2854a6c3de16cf284b05aa9e6bf6af4d57fca2c1dae78a376cc88d65f61ed994676ae9cbdb79 2 | EBUILD bashlibs-chroot-0.0.14.ebuild 449 BLAKE2B 822a855f7921bff659dbc25f2320a16cce6e7caced8dc036af73ee9b911e3227bf885779958855040e233c95c1af2b9e6e71a82e2ddbf0b35c6a8d86b5c24a35 SHA512 45e0386a57567076fa445cef6c4508779f0e838ecbb2b4a3d04432139d533a01894002cc07eb518b8d0ebbd08d9c50418afe17aaa161d68f4c14ab6931da25af 3 | MISC metadata.xml 219 BLAKE2B 17b641dad1660cbc5e67776263d4164d63bd53254ba483643ab88588ae96c58dc67ad3fdc61cf3532c854a6d8e023424a6a6331bc7fa01c5c0fb3f1e1a00f51a SHA512 61786b8f8e03cc5864ea421c7fa9e0fb1983cbc0f4cd34d3816b1d280f93e15809b8e6aed46ba139ab6101e0761292feab1f8079f8965bbfe19ded414a4b7736 4 | -------------------------------------------------------------------------------- /gentoo/portage/dev-bash/bashlibs-chroot/bashlibs-chroot-0.0.14.ebuild: -------------------------------------------------------------------------------- 1 | # Copyright 1999-2020 Gentoo Authors 2 | # Distributed under the terms of the GNU General Public License v2 3 | 4 | EAPI=7 5 | 6 | inherit bashlibs 7 | 8 | DESCRIPTION="chroot commands that setup chroot" 9 | HOMEPAGE="https://github.com/kfirlavi/bashlibs" 10 | 11 | LICENSE="BSD" 12 | SLOT="0" 13 | KEYWORDS="amd64 x86" 14 | IUSE="" 15 | 16 | RDEPEND=" 17 | >=dev-bash/bashlibs-utils-0.0.6 18 | >=dev-bash/bashlibs-shunit2-enhancements-0.0.2 19 | dev-bash/bashlibs-directories 20 | " 21 | 22 | DEPEND=" 23 | dev-bash/bashlibs-cmake-macros 24 | " 25 | -------------------------------------------------------------------------------- /gentoo/portage/dev-bash/bashlibs-chroot/metadata.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | lavi.kfir@gmail.com 6 | 7 | 8 | -------------------------------------------------------------------------------- /gentoo/portage/dev-bash/bashlibs-cmake-macros/Manifest: -------------------------------------------------------------------------------- 1 | DIST bashlibs-cmake-macros-0.0.20-Source.tar.bz2 4079 BLAKE2B 20f0f285553969f23774c5772e6c2bacf4ba6c3d39010a7a78bc8ce3b5444e177dde77b499ae367664b1cab25d82d7f9904381233638e31b3eb928f3e235254a SHA512 ef8b61b3eea302e17c9011ee21b8b0a9f6756cf09588d510396058380fa7ebbbaa4b575b43006082f8be762f642f91963a95bcb6fae54b434b6828137b8acca0 2 | EBUILD bashlibs-cmake-macros-0.0.20.ebuild 361 BLAKE2B d888d8133abb2d84f101ebbfd5ced605351b3ed2fe8e45dc702e9abe9a7faca64caf21413bc4295e35005e41f523623bdc36c09c93bcf0ce3e71a09fd8e1739b SHA512 41fbfc8a5fb8ff0b641310bf7865cf844855ccd71e88e596f602cc19c7a3203692e10e40ece2fbc5693723712e3cd1808097a317501a8558851ab848353af444 3 | MISC metadata.xml 219 BLAKE2B 17b641dad1660cbc5e67776263d4164d63bd53254ba483643ab88588ae96c58dc67ad3fdc61cf3532c854a6d8e023424a6a6331bc7fa01c5c0fb3f1e1a00f51a SHA512 61786b8f8e03cc5864ea421c7fa9e0fb1983cbc0f4cd34d3816b1d280f93e15809b8e6aed46ba139ab6101e0761292feab1f8079f8965bbfe19ded414a4b7736 4 | -------------------------------------------------------------------------------- /gentoo/portage/dev-bash/bashlibs-cmake-macros/bashlibs-cmake-macros-0.0.20.ebuild: -------------------------------------------------------------------------------- 1 | # Copyright 1999-2020 Gentoo Authors 2 | # Distributed under the terms of the GNU General Public License v2 3 | 4 | EAPI=7 5 | 6 | inherit bashlibs 7 | 8 | DESCRIPTION="Generic Cmake macros" 9 | HOMEPAGE="https://github.com/kfirlavi/bashlibs" 10 | 11 | LICENSE="BSD" 12 | SLOT="0" 13 | KEYWORDS="amd64 x86" 14 | IUSE="" 15 | 16 | DEPEND=" 17 | || ( dev-util/cmake dev-build/cmake ) 18 | >=dev-util/cmake-macros-0.0.12 19 | " 20 | RDEPEND="" 21 | -------------------------------------------------------------------------------- /gentoo/portage/dev-bash/bashlibs-cmake-macros/metadata.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | lavi.kfir@gmail.com 6 | 7 | 8 | -------------------------------------------------------------------------------- /gentoo/portage/dev-bash/bashlibs-cmdline/Manifest: -------------------------------------------------------------------------------- 1 | DIST bashlibs-cmdline-0.0.9-Source.tar.bz2 3217 BLAKE2B 2632dc59bab9f3fc1be6e631b1b4a468b9cc7d7ab9f811973c8bf425454eccc3ab09fbf8c838f94a1bf63a8df51f37a5435f674aadceb1bc8dd3f044340ed8c2 SHA512 8bbc7dc445e9d3c07c7e5e6585b0fadea99ef78184601e631b4a338805e6a5499251e2732cd9610ef6de1e7fe56cfce81ec528807999c64bb46d81c5c87c3aeb 2 | EBUILD bashlibs-cmdline-0.0.9.ebuild 414 BLAKE2B c13778931c5cc257f2bff970a3bb4239ac1a7ccc5a23ba9514eaf4c72f4fec2686ec1b5bb46552f71cbcef486baac5deea27471da38e4bf1e99691cc4b75e963 SHA512 13ee687a8b4f004bd7a79b75e87fcd475ebe70d969533c39cdbb524dad8ec34e3f65655ffef071ad57366e9754dd08065f49020c71bf4ac3d1950e3a6934ae47 3 | MISC metadata.xml 219 BLAKE2B 17b641dad1660cbc5e67776263d4164d63bd53254ba483643ab88588ae96c58dc67ad3fdc61cf3532c854a6d8e023424a6a6331bc7fa01c5c0fb3f1e1a00f51a SHA512 61786b8f8e03cc5864ea421c7fa9e0fb1983cbc0f4cd34d3816b1d280f93e15809b8e6aed46ba139ab6101e0761292feab1f8079f8965bbfe19ded414a4b7736 4 | -------------------------------------------------------------------------------- /gentoo/portage/dev-bash/bashlibs-cmdline/bashlibs-cmdline-0.0.9.ebuild: -------------------------------------------------------------------------------- 1 | # Copyright 1999-2020 Gentoo Authors 2 | # Distributed under the terms of the GNU General Public License v2 3 | 4 | EAPI=7 5 | 6 | inherit bashlibs 7 | 8 | DESCRIPTION="commandline arguments library" 9 | HOMEPAGE="https://github.com/kfirlavi/bashlibs" 10 | 11 | LICENSE="BSD" 12 | SLOT="0" 13 | KEYWORDS="amd64 x86" 14 | IUSE="" 15 | 16 | RDEPEND=" 17 | >=dev-bash/bashlibs-utils-0.0.6 18 | >=dev-bash/bashlibs-shunit2-enhancements-0.0.2 19 | " 20 | 21 | DEPEND=" 22 | dev-bash/bashlibs-cmake-macros 23 | " 24 | -------------------------------------------------------------------------------- /gentoo/portage/dev-bash/bashlibs-cmdline/metadata.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | lavi.kfir@gmail.com 6 | 7 | 8 | -------------------------------------------------------------------------------- /gentoo/portage/dev-bash/bashlibs-code-clarity/Manifest: -------------------------------------------------------------------------------- 1 | DIST bashlibs-code-clarity-0.0.14-Source.tar.bz2 3530 BLAKE2B 27955af9f361852352c2d4f55c038ff6741df601bd3015cca0682c5c76d6ae052aedd77df1b8198180ac7f84e98bea2e75647ea2e008a56f53411aa1b0dedf70 SHA512 8d9ccc3c79233d7365a106b7c8b3e04d37c8819c78e18c3ed78abb04555c697b2f6a0c0e1e6caa39c0aff12a8090a45a68bb0b05db98904369cb2ce452460609 2 | EBUILD bashlibs-code-clarity-0.0.14.ebuild 427 BLAKE2B 179a8e215645c1049ec953bcfea959b57b58beb14bbaee78297b703c8f988888e53d943bf06d12aa171d35e5f6a2c8f7235646a561005e9e35674b964a539cdb SHA512 29588ee30d2f1dd6518f034d5aca7399f3b7492c6d3c076fd7dfd7839622d4baa806c441ea17948f3ee2080d4b18b61b0d73cb484e8a083b56c7c465b1816bd2 3 | MISC metadata.xml 219 BLAKE2B 17b641dad1660cbc5e67776263d4164d63bd53254ba483643ab88588ae96c58dc67ad3fdc61cf3532c854a6d8e023424a6a6331bc7fa01c5c0fb3f1e1a00f51a SHA512 61786b8f8e03cc5864ea421c7fa9e0fb1983cbc0f4cd34d3816b1d280f93e15809b8e6aed46ba139ab6101e0761292feab1f8079f8965bbfe19ded414a4b7736 4 | -------------------------------------------------------------------------------- /gentoo/portage/dev-bash/bashlibs-code-clarity/bashlibs-code-clarity-0.0.14.ebuild: -------------------------------------------------------------------------------- 1 | # Copyright 1999-2020 Gentoo Authors 2 | # Distributed under the terms of the GNU General Public License v2 3 | 4 | EAPI=7 5 | 6 | inherit bashlibs 7 | 8 | DESCRIPTION="bashlibs library for creating cleaner code" 9 | HOMEPAGE="https://github.com/kfirlavi/bashlibs" 10 | 11 | LICENSE="BSD" 12 | SLOT="0" 13 | KEYWORDS="amd64 x86" 14 | IUSE="" 15 | 16 | RDEPEND=" 17 | >=dev-bash/bashlibs-utils-0.0.6 18 | >=dev-bash/bashlibs-shunit2-enhancements-0.0.2 19 | " 20 | 21 | DEPEND=" 22 | dev-bash/bashlibs-cmake-macros 23 | " 24 | -------------------------------------------------------------------------------- /gentoo/portage/dev-bash/bashlibs-code-clarity/metadata.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | lavi.kfir@gmail.com 6 | 7 | 8 | -------------------------------------------------------------------------------- /gentoo/portage/dev-bash/bashlibs-colors/Manifest: -------------------------------------------------------------------------------- 1 | DIST bashlibs-colors-0.0.15-Source.tar.bz2 4118 BLAKE2B 935684cb271c3b76e72acd2ba49057f350bd8ba9dbb943b6d3416b36e08164fbdb1e8ff91946955924797909300312a73dc3f1481169b42c9f37ec890fb4e4a5 SHA512 2520349483dd18fc0b079bdc97cd96000f391d536b449bccc4a5934f1caa3c909d11ad738d2bf2ee7f64d8b21d1a18469176d83cd75de840e463733a53bddd8f 2 | EBUILD bashlibs-colors-0.0.15.ebuild 408 BLAKE2B 1420c0ccca10da85f48d8cf4480c67c1dc386171bb30df3fd9252e1a7bdecb1f27ffc547e250033caae0493b10c19bf6ed94bc9979e21f013ed91f34eb8ce08b SHA512 3ea08a98117b9991beb7fa46c27525013392fd823a303e1b55190e6a1ae4e1395ba34276ac375f37e44b0dc364735f63c10faea941335d219029b7ccd95921c1 3 | MISC metadata.xml 219 BLAKE2B 17b641dad1660cbc5e67776263d4164d63bd53254ba483643ab88588ae96c58dc67ad3fdc61cf3532c854a6d8e023424a6a6331bc7fa01c5c0fb3f1e1a00f51a SHA512 61786b8f8e03cc5864ea421c7fa9e0fb1983cbc0f4cd34d3816b1d280f93e15809b8e6aed46ba139ab6101e0761292feab1f8079f8965bbfe19ded414a4b7736 4 | -------------------------------------------------------------------------------- /gentoo/portage/dev-bash/bashlibs-colors/bashlibs-colors-0.0.15.ebuild: -------------------------------------------------------------------------------- 1 | # Copyright 1999-2020 Gentoo Authors 2 | # Distributed under the terms of the GNU General Public License v2 3 | 4 | EAPI=7 5 | 6 | inherit bashlibs 7 | 8 | DESCRIPTION="bashlibs colors library" 9 | HOMEPAGE="https://github.com/kfirlavi/bashlibs" 10 | 11 | LICENSE="BSD" 12 | SLOT="0" 13 | KEYWORDS="amd64 x86" 14 | IUSE="" 15 | 16 | RDEPEND=" 17 | >=dev-bash/bashlibs-utils-0.0.6 18 | >=dev-bash/bashlibs-shunit2-enhancements-0.0.2 19 | " 20 | 21 | DEPEND=" 22 | dev-bash/bashlibs-cmake-macros 23 | " 24 | -------------------------------------------------------------------------------- /gentoo/portage/dev-bash/bashlibs-colors/metadata.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | lavi.kfir@gmail.com 6 | 7 | 8 | -------------------------------------------------------------------------------- /gentoo/portage/dev-bash/bashlibs-config/Manifest: -------------------------------------------------------------------------------- 1 | DIST bashlibs-config-0.0.21-Source.tar.bz2 5417 BLAKE2B 573e44acf765da8624450cd23bf8510193e1e191d773ea07b7418a917359f13c0ab493847be760e2ba8b983f42e1e583b24ab4d1e204b0b25e01ce9f625e6f9d SHA512 3e7a9df24db24cb6d9871f078c145686dad866f9f17a905d74087ff3945768ccb5a3095684023560f681d78f5b961d2d7fada1b5233c5ac390a4a64b4b0db8b8 2 | EBUILD bashlibs-config-0.0.21.ebuild 502 BLAKE2B 42acb1a3f5558721a6e6704a96ae62998f688c9484ce5292631a97bddd32c0ff6279376a94c15442fb5aaafe774f07a0ce69c498344df2ca1178cc402a733ada SHA512 5b855edcabf3ec818f8335110595a533548606e94883224bee109e54098aa1a9e27ea0dc20075e17d8d93399ea1ce14dc56ddaa254099183e4a37db0f116944c 3 | MISC metadata.xml 219 BLAKE2B 17b641dad1660cbc5e67776263d4164d63bd53254ba483643ab88588ae96c58dc67ad3fdc61cf3532c854a6d8e023424a6a6331bc7fa01c5c0fb3f1e1a00f51a SHA512 61786b8f8e03cc5864ea421c7fa9e0fb1983cbc0f4cd34d3816b1d280f93e15809b8e6aed46ba139ab6101e0761292feab1f8079f8965bbfe19ded414a4b7736 4 | -------------------------------------------------------------------------------- /gentoo/portage/dev-bash/bashlibs-config/bashlibs-config-0.0.21.ebuild: -------------------------------------------------------------------------------- 1 | # Copyright 1999-2020 Gentoo Authors 2 | # Distributed under the terms of the GNU General Public License v2 3 | 4 | EAPI=7 5 | 6 | inherit bashlibs 7 | 8 | DESCRIPTION="configuration library" 9 | HOMEPAGE="https://github.com/kfirlavi/bashlibs" 10 | 11 | LICENSE="BSD" 12 | SLOT="0" 13 | KEYWORDS="amd64 x86" 14 | IUSE="" 15 | 16 | RDEPEND=" 17 | >=dev-bash/bashlibs-utils-0.0.6 18 | dev-bash/bashlibs-verbose 19 | >=dev-bash/bashlibs-shunit2-enhancements-0.0.16 20 | >=dev-bash/bashlibs-string-0.0.8 21 | >=dev-bash/bashlibs-checks-0.0.3 22 | " 23 | 24 | DEPEND=" 25 | dev-bash/bashlibs-cmake-macros 26 | " 27 | -------------------------------------------------------------------------------- /gentoo/portage/dev-bash/bashlibs-config/metadata.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | lavi.kfir@gmail.com 6 | 7 | 8 | -------------------------------------------------------------------------------- /gentoo/portage/dev-bash/bashlibs-date/Manifest: -------------------------------------------------------------------------------- 1 | DIST bashlibs-date-0.0.11-Source.tar.bz2 4058 BLAKE2B 64f8e70ec1773c445ae677e4c8004ffba90f90ef9476264bb6ae022aa6541c5c089e4fa83da3e48ada134de8492ce2408669b10082d7f147194356b221762265 SHA512 4d29991b20f9f7495c2358ca2830512813c1241f4f21685bff47feb23761e56b179907c3087891b1d142ee4e0478c2274066a55ec86ff7b9c16bec8876e59b54 2 | EBUILD bashlibs-date-0.0.11.ebuild 433 BLAKE2B 4577853982e3b7e75b1662b75626ad94d6b4b54f02696ee325e6eee80f2c988c24c7e1dc524b7d9491bbff6124766574c22cf180cf01ff83a6d6ab4a267503ad SHA512 039ef27b6bac9740a85ddbd5abc82102925b93cec4ae61ab7085cecc8b227d7d175650bea5303c4b79c6f4ea719d9cdc0c4a97e8fee63a8f02c9598363a1b8e5 3 | MISC metadata.xml 219 BLAKE2B 17b641dad1660cbc5e67776263d4164d63bd53254ba483643ab88588ae96c58dc67ad3fdc61cf3532c854a6d8e023424a6a6331bc7fa01c5c0fb3f1e1a00f51a SHA512 61786b8f8e03cc5864ea421c7fa9e0fb1983cbc0f4cd34d3816b1d280f93e15809b8e6aed46ba139ab6101e0761292feab1f8079f8965bbfe19ded414a4b7736 4 | -------------------------------------------------------------------------------- /gentoo/portage/dev-bash/bashlibs-date/bashlibs-date-0.0.11.ebuild: -------------------------------------------------------------------------------- 1 | # Copyright 1999-2020 Gentoo Authors 2 | # Distributed under the terms of the GNU General Public License v2 3 | 4 | EAPI=7 5 | 6 | inherit bashlibs 7 | 8 | DESCRIPTION="bashlibs date library, provide date string for stamping filenames etc." 9 | HOMEPAGE="https://github.com/kfirlavi/bashlibs" 10 | 11 | LICENSE="BSD" 12 | SLOT="0" 13 | KEYWORDS="amd64 x86" 14 | IUSE="" 15 | 16 | RDEPEND=" 17 | >=dev-bash/bashlibs-utils-0.0.6 18 | dev-bash/bashlibs-config 19 | " 20 | 21 | DEPEND=" 22 | dev-bash/bashlibs-cmake-macros 23 | " 24 | -------------------------------------------------------------------------------- /gentoo/portage/dev-bash/bashlibs-date/metadata.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | lavi.kfir@gmail.com 6 | 7 | 8 | -------------------------------------------------------------------------------- /gentoo/portage/dev-bash/bashlibs-directories/Manifest: -------------------------------------------------------------------------------- 1 | DIST bashlibs-directories-0.0.21-Source.tar.bz2 5228 BLAKE2B 94f1ffd12e55581e70131413d2f56768d7cac1f50962b82b20559070d9c6766f136a6e13d5d92ae4d7fb6d2654eef096b7aff7e987fa77d2535fcc7c8ba394e2 SHA512 7886867d947e73675fc0d6d43d4bc3871ac69aa5368061d0f5651787e77668f103e936bf3d0fe4bf0242a3a227d7b96d710fed66988bfc28c45d25f994505312 2 | EBUILD bashlibs-directories-0.0.21.ebuild 474 BLAKE2B b2135df4a3b45b5065518ab6dc8011d5cf1155dda42619e48443beacf9db2c9cd1b546ec82fd578831b1623c2f185df5e842d3ea4cc0cee6e694ec244c508024 SHA512 e038d2f3d523cadb188f78ee2a19b5e0939ad5e4d15e35867589e4e5fcadbdb03fde9a28355db8eb82dc438ed0708d0ac0d2d6e7176103d1facf83ddf46f95d5 3 | MISC metadata.xml 219 BLAKE2B 17b641dad1660cbc5e67776263d4164d63bd53254ba483643ab88588ae96c58dc67ad3fdc61cf3532c854a6d8e023424a6a6331bc7fa01c5c0fb3f1e1a00f51a SHA512 61786b8f8e03cc5864ea421c7fa9e0fb1983cbc0f4cd34d3816b1d280f93e15809b8e6aed46ba139ab6101e0761292feab1f8079f8965bbfe19ded414a4b7736 4 | -------------------------------------------------------------------------------- /gentoo/portage/dev-bash/bashlibs-directories/bashlibs-directories-0.0.21.ebuild: -------------------------------------------------------------------------------- 1 | # Copyright 1999-2020 Gentoo Authors 2 | # Distributed under the terms of the GNU General Public License v2 3 | 4 | EAPI=7 5 | 6 | inherit bashlibs 7 | 8 | DESCRIPTION="bashlibs directories handling library" 9 | HOMEPAGE="https://github.com/kfirlavi/bashlibs" 10 | 11 | LICENSE="BSD" 12 | SLOT="0" 13 | KEYWORDS="amd64 x86" 14 | IUSE="" 15 | 16 | RDEPEND=" 17 | dev-bash/bashlibs-string 18 | dev-bash/bashlibs-config 19 | >=dev-bash/bashlibs-utils-0.0.6 20 | >=dev-bash/bashlibs-shunit2-enhancements-0.0.2 21 | " 22 | 23 | DEPEND=" 24 | dev-bash/bashlibs-cmake-macros 25 | " 26 | -------------------------------------------------------------------------------- /gentoo/portage/dev-bash/bashlibs-directories/metadata.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | lavi.kfir@gmail.com 6 | 7 | 8 | -------------------------------------------------------------------------------- /gentoo/portage/dev-bash/bashlibs-disks/Manifest: -------------------------------------------------------------------------------- 1 | DIST bashlibs-disks-0.0.25-Source.tar.bz2 5169 BLAKE2B fbc0242e664fa9de2650df0aaa82b8a6733c8a37148971a78632997de45b8af2ff3010247e88a406ef3eca8dad2699c1eb2e13a51c2ddcd06c68ffab9a6bafb9 SHA512 f504a188f1959a698db7b3be63d94d43eeb2305f6ac94488e5df0ff5e5ed16c7added0ea8c77d7610117332dc90cd06ebc7a59f8fef00211bcb4531702fac35b 2 | EBUILD bashlibs-disks-0.0.25.ebuild 467 BLAKE2B cfc729fe34cf3eed25fe08d03ad5ad48cd5f7aa3899038c348d2bcb07d6918e09a509ce9ff63f70731fb292fb0c5fd66ea81b759bbd82bc08d9f2df023491866 SHA512 c4d1d4d918071b1603ae20847918bd6687b98ba0d270c615dc462216347986d96821499aac8b0697b1b1cef3a8f2a8e0a5c4af7f6f571b7ddfb0984bcba753e4 3 | MISC metadata.xml 219 BLAKE2B 17b641dad1660cbc5e67776263d4164d63bd53254ba483643ab88588ae96c58dc67ad3fdc61cf3532c854a6d8e023424a6a6331bc7fa01c5c0fb3f1e1a00f51a SHA512 61786b8f8e03cc5864ea421c7fa9e0fb1983cbc0f4cd34d3816b1d280f93e15809b8e6aed46ba139ab6101e0761292feab1f8079f8965bbfe19ded414a4b7736 4 | -------------------------------------------------------------------------------- /gentoo/portage/dev-bash/bashlibs-disks/bashlibs-disks-0.0.25.ebuild: -------------------------------------------------------------------------------- 1 | # Copyright 1999-2020 Gentoo Authors 2 | # Distributed under the terms of the GNU General Public License v2 3 | 4 | EAPI=7 5 | 6 | inherit bashlibs 7 | 8 | DESCRIPTION="kernel cmdline /proc/cmdline" 9 | HOMEPAGE="https://github.com/kfirlavi/bashlibs" 10 | 11 | LICENSE="BSD" 12 | SLOT="0" 13 | KEYWORDS="amd64 x86" 14 | IUSE="" 15 | 16 | RDEPEND=" 17 | >=dev-bash/bashlibs-utils-0.0.6 18 | >=dev-bash/bashlibs-shunit2-enhancements-0.0.2 19 | sys-apps/util-linux 20 | sys-block/parted 21 | sys-fs/mtools 22 | " 23 | 24 | DEPEND=" 25 | dev-bash/bashlibs-cmake-macros 26 | " 27 | -------------------------------------------------------------------------------- /gentoo/portage/dev-bash/bashlibs-disks/metadata.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | lavi.kfir@gmail.com 6 | 7 | 8 | -------------------------------------------------------------------------------- /gentoo/portage/dev-bash/bashlibs-dns/Manifest: -------------------------------------------------------------------------------- 1 | DIST bashlibs-dns-0.0.8-Source.tar.bz2 3334 BLAKE2B c086b69ec1ad257a03c5c7e3ae75c2d58e5302403b201448313f4b35d41b5693dd3d8c9d036b0e0708910121edb3e5ec71b8c6ec9f9cc3225d928375ff07301d SHA512 3fc2c707d6100ab30ec1928474b3f644bab4196183b57cde4e6036c11836d6a72259570fe73dbcda0df2693ef5c23b373a132e7e0bf8bb9e9fd67919e6328d61 2 | EBUILD bashlibs-dns-0.0.8.ebuild 463 BLAKE2B 1e8c690b3a365c0ff54d749f7a8fcda5bb8fcaf71eefb43596f7660286e97a4c281890231af293df4a6dfea332798d163641838606cae5323500fa81dc36be01 SHA512 b906724f9a822705b55c5a85c7d02e70e60a88ad961f2f36151637e6c34f0862a3fe8e8f3fb7c089c63ae2005a9f402c45f313c2792700dbbfe22b5e8359569d 3 | MISC metadata.xml 219 BLAKE2B 17b641dad1660cbc5e67776263d4164d63bd53254ba483643ab88588ae96c58dc67ad3fdc61cf3532c854a6d8e023424a6a6331bc7fa01c5c0fb3f1e1a00f51a SHA512 61786b8f8e03cc5864ea421c7fa9e0fb1983cbc0f4cd34d3816b1d280f93e15809b8e6aed46ba139ab6101e0761292feab1f8079f8965bbfe19ded414a4b7736 4 | -------------------------------------------------------------------------------- /gentoo/portage/dev-bash/bashlibs-dns/bashlibs-dns-0.0.8.ebuild: -------------------------------------------------------------------------------- 1 | # Copyright 1999-2020 Gentoo Authors 2 | # Distributed under the terms of the GNU General Public License v2 3 | 4 | EAPI=7 5 | 6 | inherit bashlibs 7 | 8 | DESCRIPTION="bashlib for handling dns via hosts file" 9 | HOMEPAGE="https://github.com/kfirlavi/bashlibs" 10 | 11 | LICENSE="BSD" 12 | SLOT="0" 13 | KEYWORDS="amd64 x86" 14 | IUSE="" 15 | 16 | RDEPEND=" 17 | >=dev-bash/bashlibs-utils-0.0.6 18 | dev-bash/bashlibs-file-manipulations 19 | >=dev-bash/bashlibs-shunit2-enhancements-0.0.17 20 | " 21 | 22 | DEPEND=" 23 | dev-bash/bashlibs-cmake-macros 24 | " 25 | -------------------------------------------------------------------------------- /gentoo/portage/dev-bash/bashlibs-dns/metadata.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | lavi.kfir@gmail.com 6 | 7 | 8 | -------------------------------------------------------------------------------- /gentoo/portage/dev-bash/bashlibs-file-manipulations/Manifest: -------------------------------------------------------------------------------- 1 | DIST bashlibs-file-manipulations-0.0.16-Source.tar.bz2 4118 BLAKE2B 6e9213b612c2891bce525ee244e2fae122d986b515290410cae37708031e03eae26b32434dd78645b3489bb8dd26e9146b7b4d08479359ad407b1756b53c89ef SHA512 93edb7c447fc3927608b829af5475711499f25c1866777c15c59cba5ba65e9f729fec58ce27a57c466318198e6931351f10577e2a104fe025e55835184354c3a 2 | EBUILD bashlibs-file-manipulations-0.0.16.ebuild 419 BLAKE2B fb057e9fa4868ad66b0c067c5982a916f22079ea437fd238f83e10da428bb81940586a3e229b7a7aff7c764e5f3d1f5fdc5f053962b3d2afc1dd73de2c15937c SHA512 fec1b55b5674ed60b66f794819b0b313d5c8145e56933e8a8fec7f8d9f43c66ee2d21f0cc401b9cb20fe317c3c838f8f86b59df2a4f328cebb7130a1c1ab58c3 3 | MISC metadata.xml 219 BLAKE2B 17b641dad1660cbc5e67776263d4164d63bd53254ba483643ab88588ae96c58dc67ad3fdc61cf3532c854a6d8e023424a6a6331bc7fa01c5c0fb3f1e1a00f51a SHA512 61786b8f8e03cc5864ea421c7fa9e0fb1983cbc0f4cd34d3816b1d280f93e15809b8e6aed46ba139ab6101e0761292feab1f8079f8965bbfe19ded414a4b7736 4 | -------------------------------------------------------------------------------- /gentoo/portage/dev-bash/bashlibs-file-manipulations/bashlibs-file-manipulations-0.0.16.ebuild: -------------------------------------------------------------------------------- 1 | # Copyright 1999-2020 Gentoo Authors 2 | # Distributed under the terms of the GNU General Public License v2 3 | 4 | EAPI=7 5 | 6 | inherit bashlibs 7 | 8 | DESCRIPTION="bashlibs file manipulation library" 9 | HOMEPAGE="https://github.com/kfirlavi/bashlibs" 10 | 11 | LICENSE="BSD" 12 | SLOT="0" 13 | KEYWORDS="amd64 x86" 14 | IUSE="" 15 | 16 | RDEPEND=" 17 | >=dev-bash/bashlibs-utils-0.0.6 18 | >=dev-bash/bashlibs-shunit2-enhancements-0.0.2 19 | " 20 | 21 | DEPEND=" 22 | dev-bash/bashlibs-cmake-macros 23 | " 24 | -------------------------------------------------------------------------------- /gentoo/portage/dev-bash/bashlibs-file-manipulations/metadata.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | lavi.kfir@gmail.com 6 | 7 | 8 | -------------------------------------------------------------------------------- /gentoo/portage/dev-bash/bashlibs-gentoo/Manifest: -------------------------------------------------------------------------------- 1 | DIST bashlibs-gentoo-0.0.8-Source.tar.bz2 6288 BLAKE2B c44deca6ab46178347c4ff59265fc94f8cf7be7bcc9acc4373daa02293597cd63176aec0ddc6a056cce4435d5a07a1417bcf5bb52f9d1fc5c674873bf010b1f4 SHA512 6fbed142c5e88215eacc5a802606341afdd44b77d9e9cfbc303ab7a2402ca23c77b7c5164d32eb19f2091dd6fa787cf3f49ec3066f5cac6208d307ad1a7cf223 2 | EBUILD bashlibs-gentoo-0.0.8.ebuild 470 BLAKE2B 01fd4b4ca61c6a23e5329e177b076a3375f855fbc193f4fa972424084753758cc3e5e600cb2489164be532689f95d1c33ee733d27dfa842a10020addc69a7a54 SHA512 a0be7daa39873bda42ba00a5421f74945e1271d85d8f2c9999ae344e70e125553816a209e8db5af395c37a1ca79a6dcf844e1ea4b87eddd750ce83d8b7a016a5 3 | MISC metadata.xml 219 BLAKE2B 17b641dad1660cbc5e67776263d4164d63bd53254ba483643ab88588ae96c58dc67ad3fdc61cf3532c854a6d8e023424a6a6331bc7fa01c5c0fb3f1e1a00f51a SHA512 61786b8f8e03cc5864ea421c7fa9e0fb1983cbc0f4cd34d3816b1d280f93e15809b8e6aed46ba139ab6101e0761292feab1f8079f8965bbfe19ded414a4b7736 4 | -------------------------------------------------------------------------------- /gentoo/portage/dev-bash/bashlibs-gentoo/bashlibs-gentoo-0.0.8.ebuild: -------------------------------------------------------------------------------- 1 | # Copyright 1999-2020 Gentoo Authors 2 | # Distributed under the terms of the GNU General Public License v2 3 | 4 | EAPI=7 5 | 6 | inherit bashlibs 7 | 8 | DESCRIPTION="bashlib for working with gentoo linux os" 9 | HOMEPAGE="https://github.com/kfirlavi/bashlibs" 10 | 11 | LICENSE="BSD" 12 | SLOT="0" 13 | KEYWORDS="amd64 x86" 14 | IUSE="" 15 | 16 | RDEPEND=" 17 | >=dev-bash/bashlibs-utils-0.0.6 18 | >=dev-bash/bashlibs-shunit2-enhancements-0.0.17 19 | >=dev-bash/bashlibs-config-0.0.10 20 | " 21 | 22 | DEPEND=" 23 | >=dev-bash/bashlibs-cmake-macros-0.0.17 24 | " 25 | -------------------------------------------------------------------------------- /gentoo/portage/dev-bash/bashlibs-gentoo/metadata.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | lavi.kfir@gmail.com 6 | 7 | 8 | -------------------------------------------------------------------------------- /gentoo/portage/dev-bash/bashlibs-git/Manifest: -------------------------------------------------------------------------------- 1 | DIST bashlibs-git-0.0.12-Source.tar.bz2 4450 BLAKE2B 8f79d665fd20682181725bfbd5bd9ad1a986e96d6f8746ad5a36005521c6a27cfcbb3baaf6e969b26222ddb487c5678f4c79b9342428300b922768a98b4433c4 SHA512 89a7127ba7772a80e7680e6681378483b0dbdf7b8579598d0328723bf13ac3fd26f7dde3fa153333afbeb4ca349f778995e3faa276f6d9a6a140a18c9e22fc04 2 | EBUILD bashlibs-git-0.0.12.ebuild 467 BLAKE2B 4ada0e82bacbc4eabe40597fc941df84929ce4f8491501a54eef3101e19a3124f0a2d1fd62db8b6953ebef6ff685a6083d5d87921f2638b33f43b81666e8b0f9 SHA512 0312f8aa4600b9a16f7de0ecf695b65ee152c00fdc484d78863b78ab13a4c65115e9e7d46da5e16c259c537cacbadcb6ac1029bc68eccbc85bc4c05a268ce3cd 3 | MISC metadata.xml 219 BLAKE2B 17b641dad1660cbc5e67776263d4164d63bd53254ba483643ab88588ae96c58dc67ad3fdc61cf3532c854a6d8e023424a6a6331bc7fa01c5c0fb3f1e1a00f51a SHA512 61786b8f8e03cc5864ea421c7fa9e0fb1983cbc0f4cd34d3816b1d280f93e15809b8e6aed46ba139ab6101e0761292feab1f8079f8965bbfe19ded414a4b7736 4 | -------------------------------------------------------------------------------- /gentoo/portage/dev-bash/bashlibs-git/bashlibs-git-0.0.12.ebuild: -------------------------------------------------------------------------------- 1 | # Copyright 1999-2020 Gentoo Authors 2 | # Distributed under the terms of the GNU General Public License v2 3 | 4 | EAPI=7 5 | 6 | inherit bashlibs 7 | 8 | DESCRIPTION="bashlib for handling git repositories" 9 | HOMEPAGE="https://github.com/kfirlavi/bashlibs" 10 | 11 | LICENSE="BSD" 12 | SLOT="0" 13 | KEYWORDS="amd64 x86" 14 | IUSE="" 15 | 16 | RDEPEND=" 17 | >=dev-bash/bashlibs-utils-0.0.6 18 | dev-bash/bashlibs-directories 19 | dev-vcs/git 20 | >=dev-bash/bashlibs-shunit2-enhancements-0.0.17 21 | " 22 | 23 | DEPEND=" 24 | dev-bash/bashlibs-cmake-macros 25 | " 26 | -------------------------------------------------------------------------------- /gentoo/portage/dev-bash/bashlibs-git/metadata.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | lavi.kfir@gmail.com 6 | 7 | 8 | -------------------------------------------------------------------------------- /gentoo/portage/dev-bash/bashlibs-grub/Manifest: -------------------------------------------------------------------------------- 1 | DIST bashlibs-grub-0.0.18-Source.tar.bz2 4575 BLAKE2B c50d30a9d1a522e4dba569aaef2405f010885eac089edce99e2cf228d6e14fef87617eff238b5b7e704707cea895aa0cd964cf765ef137c11c99ad65ea066042 SHA512 d08704e9730756ae8bb0f1db0940114ddbdc0e3216eca3eaefaf595d0971cd96363f5876def04bbd4134387666f50a55b7af76564b618c6cfed500d2e727ad73 2 | EBUILD bashlibs-grub-0.0.18.ebuild 457 BLAKE2B 82083ae843d0751a7a14f5be7177cdfc331d0f5b921fa1ca53e4ff1711d87a5a0a2c6c72ac6b7a6de8f9a0feba4e091c11de31e339205c3bd0be4b89f3e61ae5 SHA512 66115ad2807c5eeb9614e154424b9a50cba9e45bc22c1daabea3ef635d6b6c629e77f44fdbe210d44ddfc311a9a76e68669ea6b09bc588ac8a2d5b5fded5016d 3 | MISC metadata.xml 219 BLAKE2B 17b641dad1660cbc5e67776263d4164d63bd53254ba483643ab88588ae96c58dc67ad3fdc61cf3532c854a6d8e023424a6a6331bc7fa01c5c0fb3f1e1a00f51a SHA512 61786b8f8e03cc5864ea421c7fa9e0fb1983cbc0f4cd34d3816b1d280f93e15809b8e6aed46ba139ab6101e0761292feab1f8079f8965bbfe19ded414a4b7736 4 | -------------------------------------------------------------------------------- /gentoo/portage/dev-bash/bashlibs-grub/bashlibs-grub-0.0.18.ebuild: -------------------------------------------------------------------------------- 1 | # Copyright 1999-2020 Gentoo Authors 2 | # Distributed under the terms of the GNU General Public License v2 3 | 4 | EAPI=7 5 | 6 | inherit bashlibs 7 | 8 | DESCRIPTION="bashlibs grub manipulation library" 9 | HOMEPAGE="https://github.com/kfirlavi/bashlibs" 10 | 11 | LICENSE="BSD" 12 | SLOT="0" 13 | KEYWORDS="amd64 x86" 14 | IUSE="" 15 | 16 | RDEPEND=" 17 | >=dev-bash/bashlibs-utils-0.0.6 18 | dev-bash/bashlibs-file-manipulations 19 | >=dev-bash/bashlibs-shunit2-enhancements-0.0.2 20 | " 21 | 22 | DEPEND=" 23 | dev-bash/bashlibs-cmake-macros 24 | " 25 | -------------------------------------------------------------------------------- /gentoo/portage/dev-bash/bashlibs-grub/metadata.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | lavi.kfir@gmail.com 6 | 7 | 8 | -------------------------------------------------------------------------------- /gentoo/portage/dev-bash/bashlibs-initramfs/Manifest: -------------------------------------------------------------------------------- 1 | DIST bashlibs-initramfs-0.0.19-Source.tar.bz2 4270 BLAKE2B 487a15ff6e9677036da830f0e2acd6f0653b539557408b3e43fe3208c59c03d920f85aa68b0b625493e83ed6c99d5ba3e985aaa96115d7abbabec1099aa64294 SHA512 92f760280aae69cbfdde0237604289ba63a0f2e5a20ae4291ad866355763df1812d759fae859f9ad44110933c7863712972aa5e71e8a73e9cad46d3cca6fb8b1 2 | EBUILD bashlibs-initramfs-0.0.19.ebuild 449 BLAKE2B ba6e99eeee473d4be856e156882eebce9e61c5b4d0742faa7d9e726357b6654a1fabaeaa1086d6ca8c0c83f9fd8abb0c5775838dd1c7f376eda2c0768e536865 SHA512 ad61a1b562074447e0d30d92487b48b4614362cc1123a11e3b88d32e6cea7d83148945a53b18c9ed9a7473cf0ff50ec358ad39159768047a8c079ce3f0320229 3 | MISC metadata.xml 219 BLAKE2B 17b641dad1660cbc5e67776263d4164d63bd53254ba483643ab88588ae96c58dc67ad3fdc61cf3532c854a6d8e023424a6a6331bc7fa01c5c0fb3f1e1a00f51a SHA512 61786b8f8e03cc5864ea421c7fa9e0fb1983cbc0f4cd34d3816b1d280f93e15809b8e6aed46ba139ab6101e0761292feab1f8079f8965bbfe19ded414a4b7736 4 | -------------------------------------------------------------------------------- /gentoo/portage/dev-bash/bashlibs-initramfs/bashlibs-initramfs-0.0.19.ebuild: -------------------------------------------------------------------------------- 1 | # Copyright 1999-2020 Gentoo Authors 2 | # Distributed under the terms of the GNU General Public License v2 3 | 4 | EAPI=7 5 | 6 | inherit bashlibs 7 | 8 | DESCRIPTION="bashlibs verbose library" 9 | HOMEPAGE="https://github.com/kfirlavi/bashlibs" 10 | 11 | LICENSE="BSD" 12 | SLOT="0" 13 | KEYWORDS="amd64 x86" 14 | IUSE="" 15 | 16 | RDEPEND=" 17 | >=dev-bash/bashlibs-utils-0.0.6 18 | >=dev-bash/bashlibs-verbose-0.0.5 19 | dev-bash/bashlibs-file-manipulations 20 | app-arch/cpio 21 | " 22 | 23 | DEPEND=" 24 | dev-bash/bashlibs-cmake-macros 25 | " 26 | -------------------------------------------------------------------------------- /gentoo/portage/dev-bash/bashlibs-initramfs/metadata.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | lavi.kfir@gmail.com 6 | 7 | 8 | -------------------------------------------------------------------------------- /gentoo/portage/dev-bash/bashlibs-kernel-cmdline/Manifest: -------------------------------------------------------------------------------- 1 | DIST bashlibs-kernel-cmdline-0.0.14-Source.tar.bz2 3998 BLAKE2B 33a3be46970df2cadaaccab0b647b49972042b550d901793f2c7320e2ca9d8ecc35551f3a680b25d420124ae7984470ef8ec4531de69453907612fdb1dc8e9d9 SHA512 1e72b6b0ae997eaf8014e0005654f8ab9832e3868c2e6f7bc68f9710cb1d008cb3a5a3fc17bdc2a300ca4b868800dd8e9991729a3d76e82753463ae5388b3476 2 | EBUILD bashlibs-kernel-cmdline-0.0.14.ebuild 439 BLAKE2B 46a1c3c424ab9952d59132c24d55176fd2bc133491f05903791a036c5d3c80907b3bfff179cd70555e5e57966748a2659f777da83650526a8dbcb9fcfd899afa SHA512 e05f6c871297c739c9d51a9edb6cea5e9601108e2d88ca6933aa77289b209676ff6325646e83b49a5578c94234cc40f54e379ad9d03840a909355948cf96eb8a 3 | MISC metadata.xml 219 BLAKE2B 17b641dad1660cbc5e67776263d4164d63bd53254ba483643ab88588ae96c58dc67ad3fdc61cf3532c854a6d8e023424a6a6331bc7fa01c5c0fb3f1e1a00f51a SHA512 61786b8f8e03cc5864ea421c7fa9e0fb1983cbc0f4cd34d3816b1d280f93e15809b8e6aed46ba139ab6101e0761292feab1f8079f8965bbfe19ded414a4b7736 4 | -------------------------------------------------------------------------------- /gentoo/portage/dev-bash/bashlibs-kernel-cmdline/bashlibs-kernel-cmdline-0.0.14.ebuild: -------------------------------------------------------------------------------- 1 | # Copyright 1999-2020 Gentoo Authors 2 | # Distributed under the terms of the GNU General Public License v2 3 | 4 | EAPI=7 5 | 6 | inherit bashlibs 7 | 8 | DESCRIPTION="kernel cmdline /proc/cmdline" 9 | HOMEPAGE="https://github.com/kfirlavi/bashlibs" 10 | 11 | LICENSE="BSD" 12 | SLOT="0" 13 | KEYWORDS="amd64 x86" 14 | IUSE="" 15 | 16 | RDEPEND=" 17 | >=dev-bash/bashlibs-utils-0.0.6 18 | dev-bash/bashlibs-string 19 | >=dev-bash/bashlibs-shunit2-enhancements-0.0.2 20 | " 21 | 22 | DEPEND=" 23 | dev-bash/bashlibs-cmake-macros 24 | " 25 | -------------------------------------------------------------------------------- /gentoo/portage/dev-bash/bashlibs-kernel-cmdline/metadata.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | lavi.kfir@gmail.com 6 | 7 | 8 | -------------------------------------------------------------------------------- /gentoo/portage/dev-bash/bashlibs-kernel-modules/Manifest: -------------------------------------------------------------------------------- 1 | DIST bashlibs-kernel-modules-0.0.3-Source.tar.bz2 3255 BLAKE2B e16c3513cd328f9f8b7cfae1af8a9c3a4fbe9ba2f73c7338e8686aa0fd04215a1577c2f168e68697ad544af7a93da4f40e0b9534ee569cb52e074ec4418804bc SHA512 6cada543711621157a8a6f7bdf761d59efa5dd7b0ef64e7b47a44efe7b666787d8a9bfb42c97243eb5de125a5e95bbb9841c2d1756476219e379e9d9f7ea0bd0 2 | EBUILD bashlibs-kernel-modules-0.0.3.ebuild 417 BLAKE2B 4ba32f46bad2be78b5e5c47efadefba08a285ba29cf029ce64fe133b4ca3d21149f0bad87200b8e0db6621ac57649c4cb082b203e114aaaed0a6d5dd369a0455 SHA512 b7cc2e5f705dce4becce79a2ab4b242c907b6dad458aa1eb1ec726a49544e460f1a0a697fb03d68aa5c56b85592d28652a6f53a96539637bdebc14c341827f87 3 | MISC metadata.xml 219 BLAKE2B 17b641dad1660cbc5e67776263d4164d63bd53254ba483643ab88588ae96c58dc67ad3fdc61cf3532c854a6d8e023424a6a6331bc7fa01c5c0fb3f1e1a00f51a SHA512 61786b8f8e03cc5864ea421c7fa9e0fb1983cbc0f4cd34d3816b1d280f93e15809b8e6aed46ba139ab6101e0761292feab1f8079f8965bbfe19ded414a4b7736 4 | -------------------------------------------------------------------------------- /gentoo/portage/dev-bash/bashlibs-kernel-modules/bashlibs-kernel-modules-0.0.3.ebuild: -------------------------------------------------------------------------------- 1 | # Copyright 1999-2020 Gentoo Authors 2 | # Distributed under the terms of the GNU General Public License v2 3 | 4 | EAPI=7 5 | 6 | inherit bashlibs 7 | 8 | DESCRIPTION="kernel modules loading/unloading" 9 | HOMEPAGE="https://github.com/kfirlavi/bashlibs" 10 | 11 | LICENSE="BSD" 12 | SLOT="0" 13 | KEYWORDS="amd64 x86" 14 | IUSE="" 15 | 16 | RDEPEND=" 17 | >=dev-bash/bashlibs-utils-0.0.6 18 | >=dev-bash/bashlibs-shunit2-enhancements-0.0.2 19 | " 20 | 21 | DEPEND=" 22 | dev-bash/bashlibs-cmake-macros 23 | " 24 | -------------------------------------------------------------------------------- /gentoo/portage/dev-bash/bashlibs-kernel-modules/metadata.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | lavi.kfir@gmail.com 6 | 7 | 8 | -------------------------------------------------------------------------------- /gentoo/portage/dev-bash/bashlibs-kernel-versioning/Manifest: -------------------------------------------------------------------------------- 1 | DIST bashlibs-kernel-versioning-0.0.11-Source.tar.bz2 3721 BLAKE2B 50705720d0897255b754c2bedeb9ec2b60e69d821f744344eb36156590475f1a3a36b015295f7562af2d66d2b01cfe05e2680ff05b79040d0176ac8ce7de43d1 SHA512 e7df18d55baec56f2d13ed4b9b7775cebb2207fdc0072bc7325ed36123adecf66ef5381ace36a1cd7d91e3a8021df13e945cf93267b3bf6486780a50145d2d2d 2 | EBUILD bashlibs-kernel-versioning-0.0.11.ebuild 472 BLAKE2B 8170bad6bd9f432ad8e900ffcf55aa79ad99a719272eae41e8ff45415ce2463c7abe53eff08a757aa13f9858ec9b86fc88698136314b5087a988b14757e3f6d6 SHA512 c3d7c7a395cc9918553f49d7a481c18b76cc7539209083288a73db652c35981af83f63ea74655d20a22e8056dcd85f93732ad05a6c423614c45e527837a21c3e 3 | MISC metadata.xml 219 BLAKE2B 17b641dad1660cbc5e67776263d4164d63bd53254ba483643ab88588ae96c58dc67ad3fdc61cf3532c854a6d8e023424a6a6331bc7fa01c5c0fb3f1e1a00f51a SHA512 61786b8f8e03cc5864ea421c7fa9e0fb1983cbc0f4cd34d3816b1d280f93e15809b8e6aed46ba139ab6101e0761292feab1f8079f8965bbfe19ded414a4b7736 4 | -------------------------------------------------------------------------------- /gentoo/portage/dev-bash/bashlibs-kernel-versioning/bashlibs-kernel-versioning-0.0.11.ebuild: -------------------------------------------------------------------------------- 1 | # Copyright 1999-2020 Gentoo Authors 2 | # Distributed under the terms of the GNU General Public License v2 3 | 4 | EAPI=7 5 | 6 | inherit bashlibs 7 | 8 | DESCRIPTION="kernel versions functions" 9 | HOMEPAGE="https://github.com/kfirlavi/bashlibs" 10 | 11 | LICENSE="BSD" 12 | SLOT="0" 13 | KEYWORDS="amd64 x86" 14 | IUSE="" 15 | 16 | RDEPEND=" 17 | >=dev-bash/bashlibs-utils-0.0.6 18 | >=dev-bash/bashlibs-shunit2-enhancements-0.0.2 19 | >=dev-bash/bashlibs-versions-0.0.5 20 | dev-bash/bashlibs-config 21 | " 22 | 23 | DEPEND=" 24 | dev-bash/bashlibs-cmake-macros 25 | " 26 | -------------------------------------------------------------------------------- /gentoo/portage/dev-bash/bashlibs-kernel-versioning/metadata.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | lavi.kfir@gmail.com 6 | 7 | 8 | -------------------------------------------------------------------------------- /gentoo/portage/dev-bash/bashlibs-libvirt/Manifest: -------------------------------------------------------------------------------- 1 | DIST bashlibs-libvirt-0.0.27-Source.tar.bz2 5502 BLAKE2B e9dc9f6f002548c582c1d4be65e5a1fc92fdfa25e2186f344ed80531f59bf42c74ca1fa50b9d3ca5e1426703b65c9d20cfc266cb477d3ecbfcacc265370ddab1 SHA512 5ba1549e8f2d0c16610a6ee44c1ad1f4dd39f6e7f8a1eefde6251ec6027598785f0bd658676b469b7807a6473f08b91d2f81544c6ce10f67da9475a9b047a8f9 2 | EBUILD bashlibs-libvirt-0.0.27.ebuild 520 BLAKE2B 3d6e1a4bccc0adbb2897f253294ebb22cc80a133d9c53ed6d2339ed0a344e6fdc51da131b113f0be3fdb2058a194c8922bebaf68a6581cc2521ee4057eb52280 SHA512 79702375e6d12c1922e5ffe8ac61b80be7a886149d3a4b30bf0149e6bf401d05b09eb90e4454af36d1da1ba80735fbd6b674c3b7719274e1a2705a0b4f056c3a 3 | MISC metadata.xml 219 BLAKE2B 17b641dad1660cbc5e67776263d4164d63bd53254ba483643ab88588ae96c58dc67ad3fdc61cf3532c854a6d8e023424a6a6331bc7fa01c5c0fb3f1e1a00f51a SHA512 61786b8f8e03cc5864ea421c7fa9e0fb1983cbc0f4cd34d3816b1d280f93e15809b8e6aed46ba139ab6101e0761292feab1f8079f8965bbfe19ded414a4b7736 4 | -------------------------------------------------------------------------------- /gentoo/portage/dev-bash/bashlibs-libvirt/bashlibs-libvirt-0.0.27.ebuild: -------------------------------------------------------------------------------- 1 | # Copyright 1999-2020 Gentoo Authors 2 | # Distributed under the terms of the GNU General Public License v2 3 | 4 | EAPI=7 5 | 6 | inherit bashlibs 7 | 8 | DESCRIPTION="bashlib for handling qemu files and qemu in general" 9 | HOMEPAGE="https://github.com/kfirlavi/bashlibs" 10 | 11 | LICENSE="BSD" 12 | SLOT="0" 13 | KEYWORDS="amd64 x86" 14 | IUSE="" 15 | 16 | RDEPEND=" 17 | >=dev-bash/bashlibs-utils-0.0.6 18 | >=dev-bash/bashlibs-shunit2-enhancements-0.0.12 19 | dev-bash/bashlibs-directories 20 | dev-bash/bashlibs-config 21 | dev-bash/bashlibs-string 22 | " 23 | 24 | DEPEND=" 25 | dev-bash/bashlibs-cmake-macros 26 | " 27 | -------------------------------------------------------------------------------- /gentoo/portage/dev-bash/bashlibs-libvirt/metadata.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | lavi.kfir@gmail.com 6 | 7 | 8 | -------------------------------------------------------------------------------- /gentoo/portage/dev-bash/bashlibs-math/Manifest: -------------------------------------------------------------------------------- 1 | DIST bashlibs-math-0.0.9-Source.tar.bz2 3368 BLAKE2B 11a1ece81c1c4f499ee255c6bd32ecae95500e44783c626f6c53d6494f70fc0548977df0e4e19ac472f8ca0d515c580e11b488b3be81df083572876ac45c5145 SHA512 b875aff08688885633beca625d8a26318a3a9343646676268fee674bdf78077905fddbc47041db5b8b18eebaf0280c629f81e771aeda5cff3a7c451f002ee6aa 2 | EBUILD bashlibs-math-0.0.9.ebuild 398 BLAKE2B 2c83f048846f586469ec7dc8561516fde0fe1f80d0adb837ab6fc3bfa2aa08f2cbb68fad19b6e745f43abe767ce22aed9a26fa8525a5a4520c203c3a46207ce4 SHA512 4d95aee9a78df6e1854dd6375778ec37d4fa85f220b6cb5d6d91458dbf479f69cd4869f5f14f816dbea0c7ab25d05f5364204041f577815b6d560caa0a04aacf 3 | MISC metadata.xml 219 BLAKE2B 17b641dad1660cbc5e67776263d4164d63bd53254ba483643ab88588ae96c58dc67ad3fdc61cf3532c854a6d8e023424a6a6331bc7fa01c5c0fb3f1e1a00f51a SHA512 61786b8f8e03cc5864ea421c7fa9e0fb1983cbc0f4cd34d3816b1d280f93e15809b8e6aed46ba139ab6101e0761292feab1f8079f8965bbfe19ded414a4b7736 4 | -------------------------------------------------------------------------------- /gentoo/portage/dev-bash/bashlibs-math/bashlibs-math-0.0.9.ebuild: -------------------------------------------------------------------------------- 1 | # Copyright 1999-2020 Gentoo Authors 2 | # Distributed under the terms of the GNU General Public License v2 3 | 4 | EAPI=7 5 | 6 | inherit bashlibs 7 | 8 | DESCRIPTION="bashlibs math library, provide max,min,avg of columns in file" 9 | HOMEPAGE="https://github.com/kfirlavi/bashlibs" 10 | 11 | LICENSE="BSD" 12 | SLOT="0" 13 | KEYWORDS="amd64 x86" 14 | IUSE="" 15 | 16 | RDEPEND=" 17 | >=dev-bash/bashlibs-utils-0.0.6 18 | " 19 | 20 | DEPEND=" 21 | dev-bash/bashlibs-cmake-macros 22 | " 23 | -------------------------------------------------------------------------------- /gentoo/portage/dev-bash/bashlibs-math/metadata.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | lavi.kfir@gmail.com 6 | 7 | 8 | -------------------------------------------------------------------------------- /gentoo/portage/dev-bash/bashlibs-net/Manifest: -------------------------------------------------------------------------------- 1 | DIST bashlibs-net-0.0.24-Source.tar.bz2 7239 BLAKE2B f73c41ff2cc19a8b01e7de60386660b37e4c70462af747bbac2e5c95e14e61f07a87f93157dc7e7f96757ff201a17baeec00371d02ff1310d7f0247299626c93 SHA512 e5ca3da8eba04c875f396443f7399ce065e4f749581f70bde0bb699c9b3e5be61cb01d69d66dccbf369b4fc3cf6b632006fd7e7282aae0089df1f2750101b147 2 | EBUILD bashlibs-net-0.0.24.ebuild 705 BLAKE2B e7ba8599d30b33fa25230965a0f04255164ec0e38cc58cfdc37111c0b47354fdf70b7f339c2e74403c73c25cc18f9d29edcab2dcf0271a56dac4d666826e4132 SHA512 ae17c4c6e7d8dfaba838761b497c575d7d34831872960c80598b76f4cb45e27856e3faa0d28f8a470cb9f572d7986a6fb776598e71819c043c86d05865f97524 3 | MISC metadata.xml 219 BLAKE2B 17b641dad1660cbc5e67776263d4164d63bd53254ba483643ab88588ae96c58dc67ad3fdc61cf3532c854a6d8e023424a6a6331bc7fa01c5c0fb3f1e1a00f51a SHA512 61786b8f8e03cc5864ea421c7fa9e0fb1983cbc0f4cd34d3816b1d280f93e15809b8e6aed46ba139ab6101e0761292feab1f8079f8965bbfe19ded414a4b7736 4 | -------------------------------------------------------------------------------- /gentoo/portage/dev-bash/bashlibs-net/bashlibs-net-0.0.24.ebuild: -------------------------------------------------------------------------------- 1 | # Copyright 1999-2020 Gentoo Authors 2 | # Distributed under the terms of the GNU General Public License v2 3 | 4 | EAPI=7 5 | 6 | inherit bashlibs linux-info 7 | 8 | DESCRIPTION="networking functions to create bridges, vlans, taps..." 9 | HOMEPAGE="https://github.com/kfirlavi/bashlibs" 10 | 11 | LICENSE="BSD" 12 | SLOT="0" 13 | KEYWORDS="amd64 x86" 14 | IUSE="" 15 | 16 | RDEPEND=" 17 | >=dev-bash/bashlibs-utils-0.0.6 18 | >=dev-bash/bashlibs-shunit2-enhancements-0.0.2 19 | >=dev-bash/bashlibs-sysfs-0.0.11 20 | dev-bash/bashlibs-config 21 | dev-bash/bashlibs-directories 22 | sys-apps/iproute2 23 | net-misc/bridge-utils 24 | sys-fs/mtools 25 | " 26 | 27 | DEPEND=" 28 | >=dev-bash/bashlibs-cmake-macros-0.0.17 29 | " 30 | 31 | pkg_pretend() { 32 | CONFIG_CHECK="~VLAN_8021Q ~BRIDGE ~TUN ~BRIDGE_NETFILTER" 33 | check_extra_config 34 | } 35 | -------------------------------------------------------------------------------- /gentoo/portage/dev-bash/bashlibs-net/metadata.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | lavi.kfir@gmail.com 6 | 7 | 8 | -------------------------------------------------------------------------------- /gentoo/portage/dev-bash/bashlibs-os-detection/Manifest: -------------------------------------------------------------------------------- 1 | DIST bashlibs-os-detection-0.0.20-Source.tar.bz2 5479 BLAKE2B f3747c2ba2600106f90f4905d3ba24affcc57b434e58070666c89400189d87066719e55889cc777d0fbb9b0a75a9053fa0f3850bc8fb9efdfe8d7e6c488e1e99 SHA512 fa90924ecb1523aad493e1d99f15c3362c61c9f4b292cb28eecf68c24e7892c4de27b1197d5812685e5073258feb3daff04d044f472d8ff853d8d77dbcd96638 2 | EBUILD bashlibs-os-detection-0.0.20.ebuild 481 BLAKE2B 1215e07300d5f9f43bfc65fae6f6a29fe0fc0cfec4fdc46bf34680387ca50fb4bf3d8035c072c37fe62abedab81db91add252281fd2ffdbad700c600683c49f7 SHA512 45b97b8c94743f4ba43aab79430e97d814f88717e10af4f810e55ae0115e4f84e2cea539726083766d1a3217f78c02dbdb3f1720e19f5fcbb0a872097e095556 3 | MISC metadata.xml 219 BLAKE2B 17b641dad1660cbc5e67776263d4164d63bd53254ba483643ab88588ae96c58dc67ad3fdc61cf3532c854a6d8e023424a6a6331bc7fa01c5c0fb3f1e1a00f51a SHA512 61786b8f8e03cc5864ea421c7fa9e0fb1983cbc0f4cd34d3816b1d280f93e15809b8e6aed46ba139ab6101e0761292feab1f8079f8965bbfe19ded414a4b7736 4 | -------------------------------------------------------------------------------- /gentoo/portage/dev-bash/bashlibs-os-detection/bashlibs-os-detection-0.0.20.ebuild: -------------------------------------------------------------------------------- 1 | # Copyright 1999-2020 Gentoo Authors 2 | # Distributed under the terms of the GNU General Public License v2 3 | 4 | EAPI=7 5 | 6 | inherit bashlibs 7 | 8 | DESCRIPTION="bashlibs library for os specific stuff like ubuntu version" 9 | HOMEPAGE="https://github.com/kfirlavi/bashlibs" 10 | 11 | LICENSE="BSD" 12 | SLOT="0" 13 | KEYWORDS="amd64 x86" 14 | IUSE="" 15 | 16 | RDEPEND=" 17 | >=dev-bash/bashlibs-utils-0.0.6 18 | dev-bash/bashlibs-code-clarity 19 | dev-bash/bashlibs-directories 20 | dev-bash/bashlibs-ssh 21 | " 22 | 23 | DEPEND=" 24 | dev-bash/bashlibs-cmake-macros 25 | " 26 | -------------------------------------------------------------------------------- /gentoo/portage/dev-bash/bashlibs-os-detection/metadata.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | lavi.kfir@gmail.com 6 | 7 | 8 | -------------------------------------------------------------------------------- /gentoo/portage/dev-bash/bashlibs-qemu/Manifest: -------------------------------------------------------------------------------- 1 | DIST bashlibs-qemu-0.0.27-Source.tar.bz2 5215 BLAKE2B 57b87bcc9ef37adc228628e87b9313cacee88921f3bc29419ec25185c707cff291b45f33a817337cd0067ece76b7b1ad0f89171fcd064bcfc5d5ee0f2a3328a9 SHA512 b8810bee0fd3bd79006f62cb35228c9076a05d303b404338410a00092aa08db6287f54d2f31a147971a42162c6c21f833f5f5d61b49967f2aa0df60e0eb0de45 2 | EBUILD bashlibs-qemu-0.0.27.ebuild 565 BLAKE2B fd8d5da083ac99f94227edcf96ba6f15d12742d88a066b1d1d2a9981a6c7c2f525547165f656a8faf9d662934e9a6a86a5c6a281c314914f447b771ea90099ef SHA512 a61b3b640bca13ed596abdac7448ae596cf892f962e4fbf6b4c86061d74bb8070ca52dec262775af6e5c8d45a4b36b30ff9c280f2d280019c660fe7ff0964cdd 3 | MISC metadata.xml 219 BLAKE2B 17b641dad1660cbc5e67776263d4164d63bd53254ba483643ab88588ae96c58dc67ad3fdc61cf3532c854a6d8e023424a6a6331bc7fa01c5c0fb3f1e1a00f51a SHA512 61786b8f8e03cc5864ea421c7fa9e0fb1983cbc0f4cd34d3816b1d280f93e15809b8e6aed46ba139ab6101e0761292feab1f8079f8965bbfe19ded414a4b7736 4 | -------------------------------------------------------------------------------- /gentoo/portage/dev-bash/bashlibs-qemu/bashlibs-qemu-0.0.27.ebuild: -------------------------------------------------------------------------------- 1 | # Copyright 1999-2020 Gentoo Authors 2 | # Distributed under the terms of the GNU General Public License v2 3 | 4 | EAPI=7 5 | 6 | inherit bashlibs 7 | 8 | DESCRIPTION="bashlib for handling qemu files and qemu in general" 9 | HOMEPAGE="https://github.com/kfirlavi/bashlibs" 10 | 11 | LICENSE="BSD" 12 | SLOT="0" 13 | KEYWORDS="amd64 x86" 14 | IUSE="" 15 | 16 | RDEPEND=" 17 | >=dev-bash/bashlibs-utils-0.0.6 18 | >=dev-bash/bashlibs-directories-0.0.20 19 | >=dev-bash/bashlibs-disks-0.0.24 20 | dev-bash/bashlibs-kernel-modules 21 | >=dev-bash/bashlibs-shunit2-enhancements-0.0.12 22 | app-emulation/qemu 23 | " 24 | 25 | DEPEND=" 26 | dev-bash/bashlibs-cmake-macros 27 | " 28 | -------------------------------------------------------------------------------- /gentoo/portage/dev-bash/bashlibs-qemu/metadata.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | lavi.kfir@gmail.com 6 | 7 | 8 | -------------------------------------------------------------------------------- /gentoo/portage/dev-bash/bashlibs-shunit2-enhancements/Manifest: -------------------------------------------------------------------------------- 1 | DIST bashlibs-shunit2-enhancements-0.0.25-Source.tar.bz2 5529 BLAKE2B bb1cf73094d4a9513d55bbe2c5c65b93e215a0dda85a72c405dfd8bedaba227c84a421b6b6f1515dc11595689dc0c90c421e294af5587e645b4c51d0b32ca0df SHA512 ea60c7d86f5fb670e783fb1999197a1af24721a30d671cffc684f53b1b11cec9e3cabe0a71fdcca951fb2ebf60d3a26bdd7a5ad983ea376f1490dc29a8404264 2 | EBUILD bashlibs-shunit2-enhancements-0.0.25.ebuild 425 BLAKE2B a3b6a9e66d90a1682e182d55dc81c56e359bcc58d9a8c720c1b33008a32b674e0c1d3c2d3e4470cfe2498e76991b7faf24b2a749faa030273334ab004b04b580 SHA512 ff661d92bbcc4594a9595981f6098e44907101f45c64acc30fb6048154f7c5572f7a89ba88dd1fa0cb5996c61c32dac9fee0857f970e41b9f55c66060219018b 3 | MISC metadata.xml 219 BLAKE2B 17b641dad1660cbc5e67776263d4164d63bd53254ba483643ab88588ae96c58dc67ad3fdc61cf3532c854a6d8e023424a6a6331bc7fa01c5c0fb3f1e1a00f51a SHA512 61786b8f8e03cc5864ea421c7fa9e0fb1983cbc0f4cd34d3816b1d280f93e15809b8e6aed46ba139ab6101e0761292feab1f8079f8965bbfe19ded414a4b7736 4 | -------------------------------------------------------------------------------- /gentoo/portage/dev-bash/bashlibs-shunit2-enhancements/bashlibs-shunit2-enhancements-0.0.25.ebuild: -------------------------------------------------------------------------------- 1 | # Copyright 1999-2020 Gentoo Authors 2 | # Distributed under the terms of the GNU General Public License v2 3 | 4 | EAPI=7 5 | 6 | inherit bashlibs 7 | 8 | DESCRIPTION="bash library extending shunit2 functionality" 9 | HOMEPAGE="https://github.com/kfirlavi/bashlibs" 10 | 11 | LICENSE="BSD" 12 | SLOT="0" 13 | KEYWORDS="amd64 x86" 14 | IUSE="" 15 | 16 | RDEPEND=" 17 | dev-util/shunit2 18 | >=dev-bash/bashlibs-utils-0.0.6 19 | dev-bash/bashlibs-checks 20 | " 21 | 22 | DEPEND=" 23 | dev-bash/bashlibs-cmake-macros 24 | " 25 | -------------------------------------------------------------------------------- /gentoo/portage/dev-bash/bashlibs-shunit2-enhancements/metadata.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | lavi.kfir@gmail.com 6 | 7 | 8 | -------------------------------------------------------------------------------- /gentoo/portage/dev-bash/bashlibs-ssh/Manifest: -------------------------------------------------------------------------------- 1 | DIST bashlibs-ssh-0.0.32-Source.tar.bz2 5343 BLAKE2B e2e80f8352c15a47b40b5ac79792166386ddc59e6797d691d507f8b9eb48c8b85b8acf9bc63ad5f9525765c07fad4c6b37d0acb4e44f95e09a57ca7479458d54 SHA512 3a76a34a0ab415c51d1b4615a4227dd732a6e1524e8353553d6829113ff9c4fcf2835add27f1ecfa8e1595a43c6f0a029ed5a0c92c51bf91b1a856f8ab70a7e8 2 | EBUILD bashlibs-ssh-0.0.32.ebuild 546 BLAKE2B 1e497f991ba4c0e0d88b7404a7bc925d052103a90a4d3b0519b8021d86fec73119af41888f4c13d6f9f5e226dea09cd4b8c96878902ebafe74ef40d4bbdca7f6 SHA512 07555de7132bd4ede680d32f13797884e715d152db9c2748b6cbe821157e9681db8446ea3dd23347242b0048dcbbc83b2295cf0e4f7a0ede729e200968292bf1 3 | MISC metadata.xml 219 BLAKE2B 17b641dad1660cbc5e67776263d4164d63bd53254ba483643ab88588ae96c58dc67ad3fdc61cf3532c854a6d8e023424a6a6331bc7fa01c5c0fb3f1e1a00f51a SHA512 61786b8f8e03cc5864ea421c7fa9e0fb1983cbc0f4cd34d3816b1d280f93e15809b8e6aed46ba139ab6101e0761292feab1f8079f8965bbfe19ded414a4b7736 4 | -------------------------------------------------------------------------------- /gentoo/portage/dev-bash/bashlibs-ssh/bashlibs-ssh-0.0.32.ebuild: -------------------------------------------------------------------------------- 1 | # Copyright 1999-2020 Gentoo Authors 2 | # Distributed under the terms of the GNU General Public License v2 3 | 4 | EAPI=7 5 | 6 | inherit bashlibs 7 | 8 | DESCRIPTION="ssh procedures to create passwordless connection" 9 | HOMEPAGE="https://github.com/kfirlavi/bashlibs" 10 | 11 | LICENSE="BSD" 12 | SLOT="0" 13 | KEYWORDS="amd64 x86" 14 | IUSE="" 15 | 16 | RDEPEND=" 17 | >=dev-bash/bashlibs-utils-0.0.6 18 | >=dev-bash/bashlibs-verbose-0.0.32 19 | >=dev-bash/bashlibs-shunit2-enhancements-0.0.2 20 | >=dev-bash/bashlibs-directories-0.0.18 21 | net-analyzer/nmap 22 | net-misc/sshpass 23 | " 24 | 25 | DEPEND=" 26 | dev-bash/bashlibs-cmake-macros 27 | " 28 | -------------------------------------------------------------------------------- /gentoo/portage/dev-bash/bashlibs-ssh/metadata.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | lavi.kfir@gmail.com 6 | 7 | 8 | -------------------------------------------------------------------------------- /gentoo/portage/dev-bash/bashlibs-string/Manifest: -------------------------------------------------------------------------------- 1 | DIST bashlibs-string-0.0.22-Source.tar.bz2 6599 BLAKE2B e4888a6153d0c28b5d358d34fb57e5c8abebb2b946eeb009bbac237b8d6ec13d21cbd2805e2fefee035d86e94fed7c2c19b450b0b609260cc9f559df2eb554e8 SHA512 98f2a492fe00d6adf52eef8f7c6bd7a6c2cc521e6c23d62242797b95c6c3291e2b56c28799f00d0a9609598101d95e9a5d91d90702f8d0e2f464bba8c68f2dcc 2 | EBUILD bashlibs-string-0.0.22.ebuild 446 BLAKE2B c373140ef8f769f41e143b7cb437ebe56192048db7f13bb62280b2a12c91b2942060f79b1c934bb70ddfea9c0c7de98ce87f73d46e3d1b6a05d6fcd8feff98fc SHA512 08c22559b40c1422400ccfedbfcec5fd08176794cc09704554c6b4eec6d449cd1dae0fb4523983e044540e0abf7f64a69180341b1975400058a31ab08b818518 3 | MISC metadata.xml 219 BLAKE2B 17b641dad1660cbc5e67776263d4164d63bd53254ba483643ab88588ae96c58dc67ad3fdc61cf3532c854a6d8e023424a6a6331bc7fa01c5c0fb3f1e1a00f51a SHA512 61786b8f8e03cc5864ea421c7fa9e0fb1983cbc0f4cd34d3816b1d280f93e15809b8e6aed46ba139ab6101e0761292feab1f8079f8965bbfe19ded414a4b7736 4 | -------------------------------------------------------------------------------- /gentoo/portage/dev-bash/bashlibs-string/bashlibs-string-0.0.22.ebuild: -------------------------------------------------------------------------------- 1 | # Copyright 1999-2020 Gentoo Authors 2 | # Distributed under the terms of the GNU General Public License v2 3 | 4 | EAPI=7 5 | 6 | inherit bashlibs 7 | 8 | DESCRIPTION="bashlibs string manipulation library" 9 | HOMEPAGE="https://github.com/kfirlavi/bashlibs" 10 | 11 | LICENSE="BSD" 12 | SLOT="0" 13 | KEYWORDS="amd64 x86" 14 | IUSE="" 15 | 16 | RDEPEND=" 17 | >=dev-bash/bashlibs-utils-0.0.6 18 | >=dev-bash/bashlibs-shunit2-enhancements-0.0.2 19 | sys-apps/colorized-logs 20 | " 21 | 22 | DEPEND=" 23 | dev-bash/bashlibs-cmake-macros 24 | " 25 | -------------------------------------------------------------------------------- /gentoo/portage/dev-bash/bashlibs-string/metadata.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | lavi.kfir@gmail.com 6 | 7 | 8 | -------------------------------------------------------------------------------- /gentoo/portage/dev-bash/bashlibs-sysfs/Manifest: -------------------------------------------------------------------------------- 1 | DIST bashlibs-sysfs-0.0.13-Source.tar.bz2 3447 BLAKE2B 036b7ef5f4b4ba610d33f079a08d2747ac909885423bbedcc4272c98d4915490f558ddfd4fb080b095f06b12f25eddfad36b56aa18d89c4e319d8433a022c8ff SHA512 7c36078ea97e64dfc2a2ee3c49715e944e0f58baa2882df6fdf8b370eba9dbbe30cb001b8311a55f51f176c1c4fbdba94eca507a199928ebe9f50f6b65be76b3 2 | EBUILD bashlibs-sysfs-0.0.13.ebuild 524 BLAKE2B 91bf536adf5b5292a2ada756f570a7c49add825e8a159c4d7ef1bc5702909f799c7c3b60eb97baa1f388892f0f68483931a32edad36fac3e7451f91cb6b7d3ac SHA512 9ee1e3d461f950cf269e2cde69de24e7b188642160700778b2dee34af5e8c74a7293be4f6469278a9cf515f6d161c24a50519060bef7283bed8c2971b82a83ba 3 | MISC metadata.xml 219 BLAKE2B 17b641dad1660cbc5e67776263d4164d63bd53254ba483643ab88588ae96c58dc67ad3fdc61cf3532c854a6d8e023424a6a6331bc7fa01c5c0fb3f1e1a00f51a SHA512 61786b8f8e03cc5864ea421c7fa9e0fb1983cbc0f4cd34d3816b1d280f93e15809b8e6aed46ba139ab6101e0761292feab1f8079f8965bbfe19ded414a4b7736 4 | -------------------------------------------------------------------------------- /gentoo/portage/dev-bash/bashlibs-sysfs/bashlibs-sysfs-0.0.13.ebuild: -------------------------------------------------------------------------------- 1 | # Copyright 1999-2020 Gentoo Authors 2 | # Distributed under the terms of the GNU General Public License v2 3 | 4 | EAPI=7 5 | 6 | inherit bashlibs 7 | 8 | DESCRIPTION="functions to manipulate sysfs" 9 | HOMEPAGE="https://github.com/kfirlavi/bashlibs" 10 | 11 | LICENSE="BSD" 12 | SLOT="0" 13 | KEYWORDS="amd64 x86" 14 | IUSE="" 15 | 16 | RDEPEND=" 17 | >=dev-bash/bashlibs-utils-0.0.6 18 | dev-bash/bashlibs-checks 19 | dev-bash/bashlibs-verbose 20 | dev-bash/bashlibs-config 21 | dev-bash/bashlibs-directories 22 | >=dev-bash/bashlibs-shunit2-enhancements-0.0.2 23 | " 24 | 25 | DEPEND=" 26 | dev-bash/bashlibs-cmake-macros 27 | " 28 | -------------------------------------------------------------------------------- /gentoo/portage/dev-bash/bashlibs-sysfs/metadata.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | lavi.kfir@gmail.com 6 | 7 | 8 | -------------------------------------------------------------------------------- /gentoo/portage/dev-bash/bashlibs-templates/Manifest: -------------------------------------------------------------------------------- 1 | DIST bashlibs-templates-0.0.1-Source.tar.bz2 2099 BLAKE2B 45b7b2af8efaa9a0b047287a3293ac120c9905aa7c37c03152a6a8ea82e69f8942de0d1af660fc9397f59d13694ac1196974b1394477b5e1d9c412458101d49f SHA512 37a1c4dcc51d7c4f28c5e255c2d25a2009afd473b09f89ad7514c3b109b977e5b106788ee6cca87ac513187d32ffdd1c30e157fb88e1ad7a97e77b971fe6c7da 2 | EBUILD bashlibs-templates-0.0.1.ebuild 476 BLAKE2B a7a5e95d0d4239d381bd0f2bb69957b13c4b23cbc8edfa8ac884164a3fca23c85be450e6a8798ebc36f5f75ee75fc350772f9227de5788ff71a6302c42fd088d SHA512 e4cfeb0955d2cc634e9b4bb08a31980e812e39200e8987fae0e3d2f6373fdd5be334a2eab62ad0991ce1e4c35e5077c67a69d97eb8c2b2d1bda4a5cdd9d70226 3 | MISC metadata.xml 219 BLAKE2B 17b641dad1660cbc5e67776263d4164d63bd53254ba483643ab88588ae96c58dc67ad3fdc61cf3532c854a6d8e023424a6a6331bc7fa01c5c0fb3f1e1a00f51a SHA512 61786b8f8e03cc5864ea421c7fa9e0fb1983cbc0f4cd34d3816b1d280f93e15809b8e6aed46ba139ab6101e0761292feab1f8079f8965bbfe19ded414a4b7736 4 | -------------------------------------------------------------------------------- /gentoo/portage/dev-bash/bashlibs-templates/bashlibs-templates-0.0.1.ebuild: -------------------------------------------------------------------------------- 1 | # Copyright 1999-2020 Gentoo Authors 2 | # Distributed under the terms of the GNU General Public License v2 3 | 4 | EAPI=7 5 | 6 | inherit bashlibs 7 | 8 | DESCRIPTION="bashlibs verbose library" 9 | HOMEPAGE="https://github.com/kfirlavi/bashlibs" 10 | 11 | LICENSE="BSD" 12 | SLOT="0" 13 | KEYWORDS="amd64 x86" 14 | IUSE="" 15 | 16 | RDEPEND=" 17 | >=dev-bash/bashlibs-utils-0.0.6 18 | >=dev-bash/bashlibs-colors-0.0.15 19 | dev-bash/bashlibs-directories 20 | >=dev-bash/bashlibs-shunit2-enhancements-0.0.10 21 | " 22 | 23 | DEPEND=" 24 | dev-bash/bashlibs-cmake-macros 25 | " 26 | -------------------------------------------------------------------------------- /gentoo/portage/dev-bash/bashlibs-templates/metadata.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | lavi.kfir@gmail.com 6 | 7 | 8 | -------------------------------------------------------------------------------- /gentoo/portage/dev-bash/bashlibs-tests/Manifest: -------------------------------------------------------------------------------- 1 | DIST bashlibs-tests-0.0.1-Source.tar.bz2 2287 BLAKE2B 9a606ffd8fa864defa2991c8780ea3705e6b99abf5df0b3a9e2f95d5f525ade2e0147857388bd582e0686231d1d33f8c50e69c55768ee1740aa00bdf88029d7e SHA512 eca214d84031790624d0819e10e18051dff9c97e1f1ba33d9aaccd20f3d0ff432579d5bc7725d7cd911eb46298875f7f3e17550d25f63a893b6026b6ecef32a8 2 | EBUILD bashlibs-tests-0.0.1.ebuild 477 BLAKE2B 703d80a604caabbc657a0fe57d748e56e1d90e898c9eb2f1c4c7ecaa3a956f20cf461d07d1a0c8bc4e5c9795e4881528556aeb31ec58f2db0f78c34924406621 SHA512 67fe9bb76d920f1d8b5e4c7b5478f6048b1ffdc99f0a6f586a1180d111bbe3e0ad60d46bb586f18387564a3a5311f015783ca49965f179dbb725a33320ea61ec 3 | MISC metadata.xml 219 BLAKE2B 17b641dad1660cbc5e67776263d4164d63bd53254ba483643ab88588ae96c58dc67ad3fdc61cf3532c854a6d8e023424a6a6331bc7fa01c5c0fb3f1e1a00f51a SHA512 61786b8f8e03cc5864ea421c7fa9e0fb1983cbc0f4cd34d3816b1d280f93e15809b8e6aed46ba139ab6101e0761292feab1f8079f8965bbfe19ded414a4b7736 4 | -------------------------------------------------------------------------------- /gentoo/portage/dev-bash/bashlibs-tests/bashlibs-tests-0.0.1.ebuild: -------------------------------------------------------------------------------- 1 | # Copyright 1999-2020 Gentoo Authors 2 | # Distributed under the terms of the GNU General Public License v2 3 | 4 | EAPI=7 5 | 6 | inherit bashlibs 7 | 8 | DESCRIPTION="bash library providing tests infrastructure" 9 | HOMEPAGE="https://github.com/kfirlavi/bashlibs" 10 | 11 | LICENSE="BSD" 12 | SLOT="0" 13 | KEYWORDS="amd64 x86" 14 | IUSE="" 15 | 16 | RDEPEND=" 17 | >=dev-bash/bashlibs-utils-0.0.6 18 | dev-bash/bashlibs-checks 19 | dev-bash/bashlibs-shunit2-enhancements 20 | dev-bash/bashlibs-directories 21 | " 22 | 23 | DEPEND=" 24 | dev-bash/bashlibs-cmake-macros 25 | " 26 | -------------------------------------------------------------------------------- /gentoo/portage/dev-bash/bashlibs-tests/metadata.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | lavi.kfir@gmail.com 6 | 7 | 8 | -------------------------------------------------------------------------------- /gentoo/portage/dev-bash/bashlibs-usage/Manifest: -------------------------------------------------------------------------------- 1 | DIST bashlibs-usage-0.0.22-Source.tar.bz2 4755 BLAKE2B 3d1399568b2285497fb7fe3d1d66a64e53f9ed5056eb03f28467499527fce7e5b8188547031d72beb57d58d28b5066c17fab02b1c4b968fd5bb7a7d4a8867eda SHA512 fdc41f412e6066c1d2ad80a5c809eaefc05d63c40a3f5cd575358a8e8608cf5887b282241f02bd386b7e8634fa4a349a855fb42c81c7cd8aad1186023073a47d 2 | EBUILD bashlibs-usage-0.0.22.ebuild 450 BLAKE2B 0bcb4add049bd160bd2aadd2d293d8a31fe8da648ec85410a8ce256f087865c57c94506ae5d2eaef1b00c4fba0ff1bca48f1f20fd5f632933a3bf514f22308f0 SHA512 cac35812ec1831b75417d8f70a7797b86e22c72ece1ec078f6b9588c49a2e8d2a3d61d6f051e224df9cefda88f527270f6840b4ff69b9f4716030beec911d565 3 | MISC metadata.xml 219 BLAKE2B 17b641dad1660cbc5e67776263d4164d63bd53254ba483643ab88588ae96c58dc67ad3fdc61cf3532c854a6d8e023424a6a6331bc7fa01c5c0fb3f1e1a00f51a SHA512 61786b8f8e03cc5864ea421c7fa9e0fb1983cbc0f4cd34d3816b1d280f93e15809b8e6aed46ba139ab6101e0761292feab1f8079f8965bbfe19ded414a4b7736 4 | -------------------------------------------------------------------------------- /gentoo/portage/dev-bash/bashlibs-usage/bashlibs-usage-0.0.22.ebuild: -------------------------------------------------------------------------------- 1 | # Copyright 1999-2020 Gentoo Authors 2 | # Distributed under the terms of the GNU General Public License v2 3 | 4 | EAPI=7 5 | 6 | inherit bashlibs 7 | 8 | DESCRIPTION="bashlibs usage library to support creation of usage text when using --help flag" 9 | HOMEPAGE="https://github.com/kfirlavi/bashlibs" 10 | 11 | LICENSE="BSD" 12 | SLOT="0" 13 | KEYWORDS="amd64 x86" 14 | IUSE="" 15 | 16 | RDEPEND=" 17 | >=dev-bash/bashlibs-utils-0.0.6 18 | >=dev-bash/bashlibs-colors-0.0.7 19 | " 20 | 21 | DEPEND=" 22 | dev-bash/bashlibs-cmake-macros 23 | " 24 | -------------------------------------------------------------------------------- /gentoo/portage/dev-bash/bashlibs-usage/metadata.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | lavi.kfir@gmail.com 6 | 7 | 8 | -------------------------------------------------------------------------------- /gentoo/portage/dev-bash/bashlibs-user/Manifest: -------------------------------------------------------------------------------- 1 | DIST bashlibs-user-0.0.9-Source.tar.bz2 3157 BLAKE2B cd960e591aa2d45b4659b4cedf9bb4b84798f9814050a42b433352c594a9dcb7ffbbd114cd61ea84eba04883213a364e5f4aee743a6e9bf2620b9229ea5727ee SHA512 6e2889f017c9545b733003022190d2a51a80d254947df50c82dac21e0038a67c36538292383020823f27c4e5ea70246eeb3f839ff43b036c900275372a1ec28c 2 | EBUILD bashlibs-user-0.0.9.ebuild 433 BLAKE2B 2299d378e95a27f1f73497593049932edb82194e69dba3acfff255f9408f42babd9a502d158539988498da586d1d1c1c3124cd5c224abdb0d2e452c373d2274a SHA512 cc03ae7ae54a3a9904e20e95e465f317c01fd27d1430a4fcc1d9496179ca147951e3aae2115259d506ed74da1a6e2a2286999d68f69c8cffd8ee5dfdc4776e4c 3 | MISC metadata.xml 219 BLAKE2B 17b641dad1660cbc5e67776263d4164d63bd53254ba483643ab88588ae96c58dc67ad3fdc61cf3532c854a6d8e023424a6a6331bc7fa01c5c0fb3f1e1a00f51a SHA512 61786b8f8e03cc5864ea421c7fa9e0fb1983cbc0f4cd34d3816b1d280f93e15809b8e6aed46ba139ab6101e0761292feab1f8079f8965bbfe19ded414a4b7736 4 | -------------------------------------------------------------------------------- /gentoo/portage/dev-bash/bashlibs-user/bashlibs-user-0.0.9.ebuild: -------------------------------------------------------------------------------- 1 | # Copyright 1999-2020 Gentoo Authors 2 | # Distributed under the terms of the GNU General Public License v2 3 | 4 | EAPI=7 5 | 6 | inherit bashlibs 7 | 8 | DESCRIPTION="ssh procedures to create passwordless connection" 9 | HOMEPAGE="https://github.com/kfirlavi/bashlibs" 10 | 11 | LICENSE="BSD" 12 | SLOT="0" 13 | KEYWORDS="amd64 x86" 14 | IUSE="" 15 | 16 | RDEPEND=" 17 | >=dev-bash/bashlibs-utils-0.0.6 18 | >=dev-bash/bashlibs-shunit2-enhancements-0.0.2 19 | " 20 | 21 | DEPEND=" 22 | dev-bash/bashlibs-cmake-macros 23 | " 24 | -------------------------------------------------------------------------------- /gentoo/portage/dev-bash/bashlibs-user/metadata.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | lavi.kfir@gmail.com 6 | 7 | 8 | -------------------------------------------------------------------------------- /gentoo/portage/dev-bash/bashlibs-utils/Manifest: -------------------------------------------------------------------------------- 1 | DIST bashlibs-utils-0.0.22-Source.tar.bz2 4934 BLAKE2B e16d910af492cb0af49e2ba6b6c0aaa4777afc198d8d5d70019dde253ac2791415d6565421a063bd503787ad70fca53647e7d8c47306d56d5bf82e6a76a03504 SHA512 e46f9362145d410c3dce0e251583365b770a8482b79f9ab7364e521dbd8dff0c1161af4703e6cecb52234ffc3e59c50fdf286cbb52d6633099518722ba8a05e7 2 | EBUILD bashlibs-utils-0.0.22.ebuild 546 BLAKE2B 4fa643569b68eb80c71dc0f55259ae84225c893b1623fd495e8e3d191fcf2c4c4850e263e93e7d77963f50155d3264f7884be5471cd7db600b3821f7c9228e0c SHA512 aeacba9916fb3a669c9f54eede2966650aa0c1051b626badfca033ac1d095e347699a508a0006f68b8ea2eeec9fba736fa25a0489d3d115910d2bb27cef2ae2b 3 | MISC metadata.xml 219 BLAKE2B 17b641dad1660cbc5e67776263d4164d63bd53254ba483643ab88588ae96c58dc67ad3fdc61cf3532c854a6d8e023424a6a6331bc7fa01c5c0fb3f1e1a00f51a SHA512 61786b8f8e03cc5864ea421c7fa9e0fb1983cbc0f4cd34d3816b1d280f93e15809b8e6aed46ba139ab6101e0761292feab1f8079f8965bbfe19ded414a4b7736 4 | -------------------------------------------------------------------------------- /gentoo/portage/dev-bash/bashlibs-utils/bashlibs-utils-0.0.22.ebuild: -------------------------------------------------------------------------------- 1 | # Copyright 1999-2020 Gentoo Authors 2 | # Distributed under the terms of the GNU General Public License v2 3 | 4 | EAPI=7 5 | 6 | inherit bashlibs 7 | 8 | DESCRIPTION="BASH libs utilities for managing the libraries" 9 | HOMEPAGE="https://github.com/kfirlavi/bashlibs" 10 | 11 | LICENSE="BSD" 12 | SLOT="0" 13 | KEYWORDS="amd64 x86" 14 | IUSE="" 15 | 16 | PDEPEND=" 17 | >=dev-bash/bashlibs-shunit2-enhancements-0.0.2 18 | >=dev-bash/bashlibs-code-clarity-0.0.2 19 | >=dev-bash/bashlibs-verbose-0.0.5 20 | >=dev-bash/bashlibs-usage-0.0.2 21 | >=dev-bash/bashlibs-base-0.0.7 22 | " 23 | 24 | DEPEND=" 25 | >=dev-bash/bashlibs-cmake-macros-0.0.5 26 | " 27 | -------------------------------------------------------------------------------- /gentoo/portage/dev-bash/bashlibs-utils/metadata.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | lavi.kfir@gmail.com 6 | 7 | 8 | -------------------------------------------------------------------------------- /gentoo/portage/dev-bash/bashlibs-verbose/Manifest: -------------------------------------------------------------------------------- 1 | DIST bashlibs-verbose-0.0.34-Source.tar.bz2 6055 BLAKE2B 49f1a745bcd327f63c082526bf962655abd87072b64b5419a11af80e93dd37f7b7a58822b63984dcfbdd108ab71250b74dd4f05bd35d500969a720b8a561f24f SHA512 4b5b7a00f0f2352f5bb149f39e173e6c26c92781cfd09609254111fc9ffe28c771aeecfd25ad77ff4f829715451da1e06ab1bbd270ac3a9699c0d4afd95ef9da 2 | EBUILD bashlibs-verbose-0.0.34.ebuild 445 BLAKE2B 7b04b3fa64f4f3f383be64f36aeb1ea7120961ae5fd59e66888db9a4d1eb7ec86b266eaa9d063615e9eda1812d9dabf25548fa0b912ada0aebc7a974c5ad7844 SHA512 b6d5a06be214f42946964ebd03b3ae4454fac65a4c1f7c98c5a8d5eb8f009bacb3c0d487b8d54b4eecea12f5b465d85967552d96cde178636501c7b54db9455c 3 | MISC metadata.xml 219 BLAKE2B 17b641dad1660cbc5e67776263d4164d63bd53254ba483643ab88588ae96c58dc67ad3fdc61cf3532c854a6d8e023424a6a6331bc7fa01c5c0fb3f1e1a00f51a SHA512 61786b8f8e03cc5864ea421c7fa9e0fb1983cbc0f4cd34d3816b1d280f93e15809b8e6aed46ba139ab6101e0761292feab1f8079f8965bbfe19ded414a4b7736 4 | -------------------------------------------------------------------------------- /gentoo/portage/dev-bash/bashlibs-verbose/bashlibs-verbose-0.0.34.ebuild: -------------------------------------------------------------------------------- 1 | # Copyright 1999-2020 Gentoo Authors 2 | # Distributed under the terms of the GNU General Public License v2 3 | 4 | EAPI=7 5 | 6 | inherit bashlibs 7 | 8 | DESCRIPTION="bashlibs verbose library" 9 | HOMEPAGE="https://github.com/kfirlavi/bashlibs" 10 | 11 | LICENSE="BSD" 12 | SLOT="0" 13 | KEYWORDS="amd64 x86" 14 | IUSE="" 15 | 16 | RDEPEND=" 17 | >=dev-bash/bashlibs-utils-0.0.6 18 | >=dev-bash/bashlibs-colors-0.0.15 19 | >=dev-bash/bashlibs-shunit2-enhancements-0.0.10 20 | " 21 | 22 | DEPEND=" 23 | dev-bash/bashlibs-cmake-macros 24 | " 25 | -------------------------------------------------------------------------------- /gentoo/portage/dev-bash/bashlibs-verbose/metadata.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | lavi.kfir@gmail.com 6 | 7 | 8 | -------------------------------------------------------------------------------- /gentoo/portage/dev-bash/bashlibs-versions/Manifest: -------------------------------------------------------------------------------- 1 | DIST bashlibs-versions-0.0.9-Source.tar.bz2 3939 BLAKE2B 2388643971b2fa4e8ad841980dd6fa5400a22aaf5fd19cf10f871a083ff41278e3457693b82d34089afa86db63c8239a3e67adbc5e5fcfbdfe7710e0d9beda5f SHA512 fc9cce9ffa8259393e42be65d3dc0ee743c086c6f376e6a975d1824d03735bc38af4c39fe06776e78e373eb9c03f307583220d530938303c970279a925eafb96 2 | EBUILD bashlibs-versions-0.0.9.ebuild 426 BLAKE2B fe3bcd0a9fcb313a8a2d275cdf8a1cb631bf28573c533e7ae809da99e08002c5b019aba9ff37b90b8c03a18bcc4ba80eb7bf84e16a2db932f05d91b77436c0ce SHA512 1cdab4cc3edfd81fd0121a501f50a72e11dc73bd8a18e9b061fca85d2800b71e62ca2d629c10b439ab036a7260e55e953a4bec972bc36a506a9f448479d3afba 3 | MISC metadata.xml 219 BLAKE2B 17b641dad1660cbc5e67776263d4164d63bd53254ba483643ab88588ae96c58dc67ad3fdc61cf3532c854a6d8e023424a6a6331bc7fa01c5c0fb3f1e1a00f51a SHA512 61786b8f8e03cc5864ea421c7fa9e0fb1983cbc0f4cd34d3816b1d280f93e15809b8e6aed46ba139ab6101e0761292feab1f8079f8965bbfe19ded414a4b7736 4 | -------------------------------------------------------------------------------- /gentoo/portage/dev-bash/bashlibs-versions/bashlibs-versions-0.0.9.ebuild: -------------------------------------------------------------------------------- 1 | # Copyright 1999-2020 Gentoo Authors 2 | # Distributed under the terms of the GNU General Public License v2 3 | 4 | EAPI=7 5 | 6 | inherit bashlibs 7 | 8 | DESCRIPTION="bashlib to handle versions" 9 | HOMEPAGE="https://github.com/kfirlavi/bashlibs" 10 | 11 | LICENSE="BSD" 12 | SLOT="0" 13 | KEYWORDS="amd64 x86" 14 | IUSE="" 15 | 16 | RDEPEND=" 17 | >=dev-bash/bashlibs-utils-0.0.6 18 | >=dev-bash/bashlibs-shunit2-enhancements-0.0.15 19 | sys-apps/sed 20 | " 21 | 22 | DEPEND=" 23 | dev-bash/bashlibs-cmake-macros 24 | " 25 | -------------------------------------------------------------------------------- /gentoo/portage/dev-bash/bashlibs-versions/metadata.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | lavi.kfir@gmail.com 6 | 7 | 8 | -------------------------------------------------------------------------------- /gentoo/portage/dev-util/cmake-macros/Manifest: -------------------------------------------------------------------------------- 1 | DIST cmake-macros-0.0.15-Source.tar.bz2 4626 BLAKE2B c85a6e5a8d37a483839d18d23586c6662d1ad1b4d5066c1a5cd62ad54b44103a1082aa41b91227c1eb525bc8f7ecda943cba99791afb1b252477b754f5bdd82e SHA512 cba15fb6a53bdabd511057e62b08660de297df626cf37b85b9524fc7d143680bc3407beb4aa93789b238a4d2e233159ac00c8e376df0396716508b084542b6ec 2 | EBUILD cmake-macros-0.0.15.ebuild 379 BLAKE2B 5bfc84e9f39d07a5d826e633405d0ca9f73eeb32873e8fc94255ec18198384b7398e7c8549c242d55d22df789651f8f6d8c98b7983c16eaf1ffccf98bda05383 SHA512 358c8d755c06a5f31811b343ec9fb5d1e5418b2868a482cb7d14f473a8d0b15c41d99cf09412decd703d1a4e725304d1d46f3441656d46bf3a7e57bbdf7d2810 3 | MISC metadata.xml 219 BLAKE2B 17b641dad1660cbc5e67776263d4164d63bd53254ba483643ab88588ae96c58dc67ad3fdc61cf3532c854a6d8e023424a6a6331bc7fa01c5c0fb3f1e1a00f51a SHA512 61786b8f8e03cc5864ea421c7fa9e0fb1983cbc0f4cd34d3816b1d280f93e15809b8e6aed46ba139ab6101e0761292feab1f8079f8965bbfe19ded414a4b7736 4 | -------------------------------------------------------------------------------- /gentoo/portage/dev-util/cmake-macros/cmake-macros-0.0.15.ebuild: -------------------------------------------------------------------------------- 1 | # Copyright 1999-2020 Gentoo Authors 2 | # Distributed under the terms of the GNU General Public License v2 3 | 4 | EAPI=7 5 | 6 | inherit bashlibs 7 | 8 | DESCRIPTION="Generic Cmake macros" 9 | HOMEPAGE="https://github.com/kfirlavi/bashlibs" 10 | 11 | LICENSE="BSD" 12 | SLOT="0" 13 | KEYWORDS="amd64 x86" 14 | IUSE="" 15 | 16 | PDEPEND=" 17 | dev-bash/bashlibs-os-detection 18 | " 19 | DEPEND=" 20 | || ( >=dev-util/cmake-2.6 dev-build/cmake ) 21 | " 22 | RDEPEND="" 23 | -------------------------------------------------------------------------------- /gentoo/portage/dev-util/cmake-macros/metadata.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | lavi.kfir@gmail.com 6 | 7 | 8 | -------------------------------------------------------------------------------- /gentoo/portage/eclass/bashlibs.eclass: -------------------------------------------------------------------------------- 1 | # @ECLASS: bashlibs.eclass 2 | # @MAINTAINER: 3 | # lavi.kfir@gmail.com 4 | # @SUPPORTED_EAPIS: 5 5 | # @BLURB: Support eclass for bashlibs 6 | # @DESCRIPTION: 7 | # library routins for simple ebuilds 8 | 9 | inherit cmake 10 | 11 | MY_P="${P}-Source" 12 | SRC_URI="${MY_P}.tar.bz2" 13 | S="${WORKDIR}/${MY_P}" 14 | 15 | src_configure() { 16 | local mycmakeargs=(-DCMAKE_INSTALL_PREFIX=/) 17 | cmake_src_configure 18 | } 19 | 20 | src_install() { 21 | cmake_src_install 22 | } 23 | 24 | bashlibs_binary_exist() { 25 | which bashlibs 26 | } 27 | 28 | pkg_postinst() { 29 | bashlibs_binary_exist \ 30 | && _LIBRARIES_INCLUDED= \ 31 | bashlibs --test ${PN} 32 | } 33 | -------------------------------------------------------------------------------- /gentoo/portage/metadata/layout.conf: -------------------------------------------------------------------------------- 1 | masters = gentoo 2 | -------------------------------------------------------------------------------- /gentoo/portage/profiles/categories: -------------------------------------------------------------------------------- 1 | dev-bash 2 | dev-util 3 | -------------------------------------------------------------------------------- /gentoo/portage/profiles/repo_name: -------------------------------------------------------------------------------- 1 | bashlibs 2 | -------------------------------------------------------------------------------- /gentoo/portage/sys-apps/colorized-logs/Manifest: -------------------------------------------------------------------------------- 1 | DIST colorized-logs-2.4.tar.gz 10918 BLAKE2B 767d635155ebb66e212888c8e61e2ab65be665497a84c8820aa8183a5d94d30c9f2b653c16131916a907cb369d3b88a004573ae9eeaa1fda954cee239fa6da05 SHA512 5ac5734409f06262ad470a87e215c305f805a5701a604f1fc744632a25e4a1b8dd9c878897f72ad434b71ebe300c6d676cd53760a34f48b8202a62c765dcbe3f 2 | EBUILD colorized-logs-2.4.ebuild 639 BLAKE2B fbacbb1be2a57c9bbb631de1c0c97b624a34c9b2f0d1810f368bc4575310b96f1f0ca54e05950124a96f260b4128439914a2d768a1f57ebe48c73e6c9eef964f SHA512 54976851cc901a795f571d20524aad4a9fa8e7dd4da1c4035d1886f240899b4ff5436bed1a1da17b19d673482f37c5b324f8b31821a32d215df3069ad93d7b55 3 | MISC metadata.xml 243 BLAKE2B f40c5d69470d5136cba32e1ea6b2351ca1842a5d83381e0bef3e063e266c64bebb9ba85e1f155010e219b136c2827c989d9adf3b2c6b2f6ca265f03339c9a7ce SHA512 640630eb9d42c319ca1da37b03a03677a3dd4e48f28ce2690b64f6e4e7d5885cfda41d439f3f9d8b009be04891b043a5b0ac6f9d43b701f65c8fcc0e0613b04a 4 | -------------------------------------------------------------------------------- /gentoo/portage/sys-apps/colorized-logs/colorized-logs-2.4.ebuild: -------------------------------------------------------------------------------- 1 | # Copyright 1999-2018 Gentoo Authors 2 | # Distributed under the terms of the GNU General Public License v2 3 | 4 | EAPI=7 5 | inherit cmake 6 | 7 | DESCRIPTION="Tools for logs with ANSI color" 8 | HOMEPAGE="https://github.com/kilobyte/colorized-logs/" 9 | SRC_URI="https://github.com/kilobyte/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" 10 | 11 | LICENSE="MIT" 12 | SLOT="0" 13 | KEYWORDS="amd64 x86" 14 | IUSE="" 15 | 16 | DEPEND="" 17 | RDEPEND="${DEPEND}" 18 | 19 | src_install() { 20 | cmake_src_install 21 | # Rename to not collide with dev-python/ansi2html 22 | mv "${ED}/usr/bin/ansi2html" "${ED}/usr/bin/cl-ansi2html" || die 23 | mv "${ED}/usr/share/man/man1/ansi2html.1" "${ED}/usr/share/man/man1/cl-ansi2html.1" || die 24 | } 25 | -------------------------------------------------------------------------------- /gentoo/portage/sys-apps/colorized-logs/metadata.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | pacho@gentoo.org 6 | Pacho Ramos 7 | 8 | 9 | -------------------------------------------------------------------------------- /git-hooks/prepare-commit-msg: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | readonly COMMIT_FILE=$1 3 | 4 | commit_file() { 5 | echo $COMMIT_FILE 6 | } 7 | 8 | commit_file_content() { 9 | cat $(commit_file) 10 | } 11 | 12 | staged_files() { 13 | git diff --cached --name-status \ 14 | | awk '{print $2}' 15 | } 16 | 17 | modified_packages_paths() { 18 | staged_files \ 19 | | grep version \ 20 | | xargs dirname 21 | } 22 | 23 | project_name() { 24 | local project_path=$1 25 | 26 | grep -i "project" $project_path/CMakeLists.txt \ 27 | | head -1 \ 28 | | cut -d '(' -f 2 | cut -d ')' -f 1 \ 29 | | tr ' ' '.' \ 30 | | sed 's/bashlibs-//' 31 | } 32 | 33 | project_version() { 34 | local project_path=$1 35 | 36 | cat $project_path/version 37 | } 38 | 39 | changed_projects() { 40 | local i 41 | 42 | for i in $(modified_packages_paths) 43 | do 44 | echo "$(project_name $i)-$(project_version $i)" 45 | done 46 | } 47 | 48 | main() { 49 | echo -e "$(changed_projects)\n$(commit_file_content)" > $(commit_file) 50 | } 51 | main 52 | -------------------------------------------------------------------------------- /src/bashlibs-apt/.bakerc: -------------------------------------------------------------------------------- 1 | PRE_COMPILE_DEPEND="bashlibs-cmake-macros" 2 | -------------------------------------------------------------------------------- /src/bashlibs-apt/AUTHORS: -------------------------------------------------------------------------------- 1 | Kfir Lavi 2 | -------------------------------------------------------------------------------- /src/bashlibs-apt/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required (VERSION 2.6) 2 | project (bashlibs-apt) 3 | 4 | list(APPEND CMAKE_MODULE_PATH 5 | "/usr/share/cmake-macros/Modules") 6 | list(APPEND CMAKE_MODULE_PATH 7 | "/usr/share/bashlibs/cmake-macros/Modules") 8 | 9 | include(BashLibs) 10 | set(CPACK_DEBIAN_PACKAGE_DEPENDS 11 | "apt, 12 | bashlibs-verbose, 13 | bashlibs-config, 14 | bashlibs-utils") 15 | include(PackageCreator) 16 | 17 | -------------------------------------------------------------------------------- /src/bashlibs-apt/License: -------------------------------------------------------------------------------- 1 | Copyright (c) 2013 ,2014 ,2015 ,2016 ,2017 ,2018 ,2019 ,2020 ,2021 2 | 2022, 2023 Kfir Lavi All rights reserved. 3 | 4 | Redistribution and use in source and binary forms, with or without 5 | modification, are permitted provided that the following conditions are met: 6 | 7 | 1. Redistributions of source code must retain the above copyright notice, 8 | this list of conditions and the following disclaimer. 9 | 2. Redistributions in binary form must reproduce the above copyright 10 | notice, this list of conditions and the following disclaimer in the 11 | documentation and/or other materials provided with the distribution. 12 | 3. Neither the name of Kfir Lavi nor the names of its 13 | contributors may be used to endorse or promote products derived from 14 | this software without specific prior written permission. 15 | 16 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 17 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 18 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 19 | ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 20 | LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 21 | CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 22 | SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 23 | INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 24 | CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 25 | ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 26 | POSSIBILITY OF SUCH DAMAGE. 27 | -------------------------------------------------------------------------------- /src/bashlibs-apt/README: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/bashlibs-apt/TODO: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/bashlibs-apt/lib/apt_cmd.sh: -------------------------------------------------------------------------------- 1 | apt_quiet_flags() { 2 | echo "--quiet=2" 3 | } 4 | 5 | apt_noninteractive_flag() { 6 | echo DEBIAN_FRONTEND=noninteractive 7 | } 8 | 9 | apt_force() { 10 | echo "$(apt_noninteractive_flag) $(apt_bin) -y --force-yes $(apt_quiet_flags)" 11 | } 12 | 13 | apt_cmd_fix_install() { 14 | echo $(apt_force) install 15 | } 16 | 17 | apt_cmd_install_package() { 18 | local package=$1 19 | 20 | echo $(apt_force) install $package 21 | } 22 | 23 | apt_cmd_update() { 24 | echo $(apt_force) update 25 | } 26 | 27 | apt_cmd_upgrade() { 28 | echo $(apt_force) upgrade 29 | } 30 | 31 | apt_cmd_dist_upgrade() { 32 | echo $(apt_force) dist-upgrade 33 | } 34 | 35 | apt_cmd_force_dist_upgrade() { 36 | echo $(apt_force) dist-upgrade --fix-missing 37 | } 38 | 39 | apt_cmd_autoremove() { 40 | echo $(apt_force) autoremove 41 | } 42 | 43 | apt_cmd_clean() { 44 | echo $(apt_force) clean 45 | } 46 | 47 | apt_cmd_locked() { 48 | echo 'dpkg -i /dev/zero > /dev/null 2>&1' 49 | } 50 | 51 | apt_cmd_package_installed() { 52 | local package=$1 53 | 54 | echo "dpkg -l | cut -d ' ' -f 3 | egrep '^$package$'" 55 | } 56 | -------------------------------------------------------------------------------- /src/bashlibs-apt/test/test_apt.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | $(bashlibs --load-base) 3 | include shunit2_enhancements.sh 4 | include config.sh 5 | include apt.sh 6 | 7 | test_setup_apt_warning_to_user() { 8 | returns "you need to run setup_apt, before using any of the apt functions" \ 9 | "apt_bin" 10 | } 11 | 12 | test_setup_apt_set_new_apt() { 13 | var_to_function which apt 14 | setup_apt 15 | returns "apt" "apt_bin" 16 | } 17 | 18 | test_setup_apt_set_apt_get() { 19 | which() { 20 | local bin=$1 21 | 22 | [[ $bin == apt ]] \ 23 | && echo -n 24 | 25 | [[ $bin == apt-get ]] \ 26 | && echo apt-get 27 | } 28 | setup_apt 29 | returns "apt-get" "apt_bin" 30 | } 31 | 32 | test_setup_apt_warn_apt_not_found() { 33 | which() { echo; } 34 | eexit() { echo $@; } 35 | returns "Can not find apt or apt-get support in the system" "setup_apt" 36 | } 37 | 38 | # load shunit2 39 | source /usr/share/shunit2/shunit2 40 | -------------------------------------------------------------------------------- /src/bashlibs-apt/version: -------------------------------------------------------------------------------- 1 | 0.0.17 2 | -------------------------------------------------------------------------------- /src/bashlibs-base/.bakerc: -------------------------------------------------------------------------------- 1 | PRE_COMPILE_DEPEND="bashlibs-cmake-macros" 2 | -------------------------------------------------------------------------------- /src/bashlibs-base/AUTHORS: -------------------------------------------------------------------------------- 1 | Kfir Lavi 2 | -------------------------------------------------------------------------------- /src/bashlibs-base/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required (VERSION 2.6) 2 | project (bashlibs-base) 3 | 4 | list(APPEND CMAKE_MODULE_PATH 5 | "/usr/share/cmake-macros/Modules") 6 | list(APPEND CMAKE_MODULE_PATH 7 | "/usr/share/bashlibs/cmake-macros/Modules") 8 | 9 | include(BashLibs) 10 | set(CPACK_DEBIAN_PACKAGE_DEPENDS 11 | "bashlibs-utils (>= 0.0.6), 12 | bashlibs-shunit2-enhancements (>= 0.0.2), 13 | bashlibs-code-clarity (>= 0.0.2)") 14 | include(PackageCreator) 15 | 16 | -------------------------------------------------------------------------------- /src/bashlibs-base/License: -------------------------------------------------------------------------------- 1 | Copyright (c) 2013 ,2014 ,2015 ,2016 ,2017 ,2018 ,2019 ,2020 ,2021 2 | 2022, 2023 Kfir Lavi All rights reserved. 3 | 4 | Redistribution and use in source and binary forms, with or without 5 | modification, are permitted provided that the following conditions are met: 6 | 7 | 1. Redistributions of source code must retain the above copyright notice, 8 | this list of conditions and the following disclaimer. 9 | 2. Redistributions in binary form must reproduce the above copyright 10 | notice, this list of conditions and the following disclaimer in the 11 | documentation and/or other materials provided with the distribution. 12 | 3. Neither the name of Kfir Lavi nor the names of its 13 | contributors may be used to endorse or promote products derived from 14 | this software without specific prior written permission. 15 | 16 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 17 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 18 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 19 | ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 20 | LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 21 | CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 22 | SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 23 | INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 24 | CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 25 | ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 26 | POSSIBILITY OF SUCH DAMAGE. 27 | -------------------------------------------------------------------------------- /src/bashlibs-base/README: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/bashlibs-base/TODO: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/bashlibs-base/lib/base.sh: -------------------------------------------------------------------------------- 1 | intree_include() { 2 | [[ -d $BASHLIBS_SOURCE_TREE/src ]] 3 | } 4 | 5 | find_library() { 6 | local library_name=$1 7 | 8 | find $(libraries_path) \ 9 | -type f \ 10 | -name "$library_name" 11 | } 12 | 13 | library_does_no_exist() { 14 | local library_name=$1 15 | 16 | [[ ! -f $(find_library $library_name) ]] 17 | } 18 | 19 | exit_if_library_does_not_exists() { 20 | local library_name=$1 21 | 22 | if library_does_no_exist $library_name; then 23 | echo "can't find library '$library_name' in $(libraries_path)" 24 | exit 1 25 | fi 26 | } 27 | 28 | libraries_path() { 29 | intree_include \ 30 | && echo $BASHLIBS_SOURCE_TREE/src \ 31 | || echo /usr/lib/bashlibs 32 | } 33 | 34 | source $(find_library header.sh) 35 | source $(find_library include.sh) 36 | -------------------------------------------------------------------------------- /src/bashlibs-base/lib/header.sh: -------------------------------------------------------------------------------- 1 | export readonly _PROGNAME=$(basename $0) 2 | export readonly _PROGDIR=$(cd $(dirname $0); pwd) 3 | export readonly _WORKING_DIR=$(pwd) 4 | export readonly _ARGS="$@" 5 | 6 | progname() { 7 | echo "$_PROGNAME" 8 | } 9 | 10 | progdir() { 11 | echo "$_PROGDIR" 12 | } 13 | 14 | working_directory() { 15 | echo "$_WORKING_DIR" 16 | } 17 | 18 | args() { 19 | echo ' ' "$_ARGS" 20 | } 21 | -------------------------------------------------------------------------------- /src/bashlibs-base/lib/include.sh: -------------------------------------------------------------------------------- 1 | libraries_tests_dir() { 2 | echo /usr/share/bashlibs/test 3 | } 4 | 5 | libraries_included() { 6 | echo 7 | } 8 | 9 | clean_library_included() { 10 | libraries_included() { 11 | echo 12 | } 13 | } 14 | 15 | is_library_included() { 16 | local library_name=$1 17 | 18 | [[ " $(libraries_included) " =~ " $library_name " ]] 19 | } 20 | 21 | save_library_as_included() { 22 | local library_name=$1 23 | 24 | is_library_included $library_name \ 25 | && return 26 | 27 | eval "libraries_included() { echo $(libraries_included) $library_name ;}" 28 | } 29 | 30 | include() { 31 | local library_name=$1 32 | 33 | exit_if_library_does_not_exists $library_name 34 | 35 | is_library_included $library_name \ 36 | || source $(find_library $library_name) 37 | 38 | save_library_as_included $library_name 39 | } 40 | 41 | save_library_as_included base.sh 42 | -------------------------------------------------------------------------------- /src/bashlibs-base/version: -------------------------------------------------------------------------------- 1 | 0.0.22 2 | -------------------------------------------------------------------------------- /src/bashlibs-build-utils/.bakerc: -------------------------------------------------------------------------------- 1 | PRE_COMPILE_DEPEND="bashlibs-cmake-macros" 2 | -------------------------------------------------------------------------------- /src/bashlibs-build-utils/AUTHORS: -------------------------------------------------------------------------------- 1 | Kfir Lavi 2 | -------------------------------------------------------------------------------- /src/bashlibs-build-utils/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required (VERSION 2.6) 2 | project (bashlibs-build-utils) 3 | 4 | list(APPEND CMAKE_MODULE_PATH 5 | "/usr/share/cmake-macros/Modules") 6 | list(APPEND CMAKE_MODULE_PATH 7 | "/usr/share/bashlibs/cmake-macros/Modules") 8 | 9 | include(BashLibs) 10 | set(CPACK_DEBIAN_PACKAGE_DEPENDS 11 | "bashlibs-shunit2-enhancements (>= 0.0.11), 12 | realpath | coreutils (>= 8.23), 13 | dpkg-dev, 14 | tree, 15 | bashlibs-cmdline (>= 0.0.2), 16 | bashlibs-base (>= 0.0.10), 17 | bashlibs-usage (>= 0.0.11), 18 | bashlibs-directories (>= 0.0.4), 19 | bashlibs-verbose (>= 0.0.25), 20 | bashlibs-ssh (>= 0.0.32), 21 | bashlibs-os-detection (>= 0.0.20), 22 | bashlibs-checks (>= 0.0.11), 23 | bashlibs-utils (>= 0.0.11)") 24 | include(PackageCreator) 25 | -------------------------------------------------------------------------------- /src/bashlibs-build-utils/README: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/bashlibs-build-utils/TODO: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/bashlibs-build-utils/bake-intree-init: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | ARGS=$@ 3 | 4 | # This variable is exported to sub shell, so we need to clear it for 5 | # sub shell to work properly 6 | export _LIBRARIES_INCLUDED= 7 | 8 | running_in_src_tree() { 9 | [[ -f $(my_real_dir)/../CMakeLists.txt ]] 10 | } 11 | 12 | bashlibs_src_tree() { 13 | realpath $(my_real_dir)/../../../ 14 | } 15 | 16 | load_bashlibs_from_src_tree() { 17 | export BASHLIBS_SOURCE_TREE=$(bashlibs_src_tree) 18 | $($BASHLIBS_SOURCE_TREE/bin/bashlibs --load-base) 19 | } 20 | 21 | load_bashlibs() { 22 | running_in_src_tree \ 23 | && load_bashlibs_from_src_tree $ARGS \ 24 | || $(bashlibs --load-base) 25 | } 26 | load_bashlibs 27 | -------------------------------------------------------------------------------- /src/bashlibs-build-utils/bin/ver-reset: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | readonly PATH_TO_VERSION_FILE=${1:-'.'} 3 | 4 | version_file() { 5 | echo $PATH_TO_VERSION_FILE/version 6 | } 7 | 8 | main() { 9 | echo "0.0.1" > $(version_file) 10 | } 11 | main 12 | -------------------------------------------------------------------------------- /src/bashlibs-build-utils/lib/bake_test.sh: -------------------------------------------------------------------------------- 1 | package_is_bashlib() { 2 | local project_name=$1 3 | 4 | echo $project_name \ 5 | | egrep -q '^bashlibs-' 6 | } 7 | 8 | package_test_files_gentoo() { 9 | run_remote \ 10 | equery files $(cmake_project_name) \ 11 | | grep test_ 12 | } 13 | 14 | package_test_files_ubuntu() { 15 | run_remote \ 16 | dpkg -L $(cmake_project_name) \ 17 | | grep test_ 18 | } 19 | 20 | package_test_files_debian() { 21 | package_test_files_ubuntu 22 | } 23 | 24 | package_test_files() { 25 | target_os_is_gentoo \ 26 | && package_test_files_$(target_os) 27 | 28 | target_os_is_gentoo \ 29 | && package_test_files_gentoo 30 | } 31 | 32 | package_has_test_files() { 33 | [[ -n $(package_test_files_$(target_os)) ]] 34 | } 35 | 36 | run_tests_of_package() { 37 | [[ -z $RUN_TESTS ]] \ 38 | && return 39 | 40 | package_is_bashlib $(cmake_project_name) \ 41 | || return 42 | 43 | package_has_test_files \ 44 | || return 45 | 46 | local i 47 | 48 | for i in $(package_test_files_$(target_os)) 49 | do 50 | run_remote \ 51 | bashlibs -v --test $(basename $i) 52 | done 53 | } 54 | -------------------------------------------------------------------------------- /src/bashlibs-build-utils/test/test_bake_cmdline.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | $(bashlibs --load-base) 3 | include shunit2_enhancements.sh 4 | include bake_cmdline.sh 5 | 6 | test_project_names_to_bake_commandline() { 7 | returns "-p proj1 " \ 8 | "project_names_to_bake_commandline proj1" 9 | 10 | returns "-p proj1 -p proj2 " \ 11 | "project_names_to_bake_commandline proj1 proj2" 12 | } 13 | 14 | # load shunit2 15 | source /usr/share/shunit2/shunit2 16 | -------------------------------------------------------------------------------- /src/bashlibs-build-utils/test/test_bake_debian.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | $(bashlibs --load-base) 3 | include shunit2_enhancements.sh 4 | include bake_debian.sh 5 | 6 | test_apt_get_params() { 7 | returns \ 8 | "--assume-yes --force-yes --allow-unauthenticated -f" \ 9 | "apt_get_params" 10 | } 11 | 12 | test_apt_get_cmd() { 13 | returns \ 14 | "DEBIAN_FRONTEND=noninteractive apt-get --assume-yes --force-yes --allow-unauthenticated -f" \ 15 | "apt_get_cmd" 16 | } 17 | 18 | test_should_install_pre_compiled_depend() { 19 | local PRE_COMPILE_DEPEND= 20 | return_false "should_install_pre_compiled_depend" 21 | 22 | local PRE_COMPILE_DEPEND=1 23 | return_true "should_install_pre_compiled_depend" 24 | } 25 | 26 | # load shunit2 27 | source /usr/share/shunit2/shunit2 28 | -------------------------------------------------------------------------------- /src/bashlibs-build-utils/test/test_bake_test.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | $(bashlibs --load-base) 3 | include shunit2_enhancements.sh 4 | include bake_test.sh 5 | 6 | test_package_is_bashlib() { 7 | return_true "package_is_bashlib bashlibs-test" 8 | return_true "package_is_bashlib bashlibs-test-bashlibs" 9 | return_true "package_is_bashlib bashlibs-test-test" 10 | return_false "package_is_bashlib bash-test" 11 | return_false "package_is_bashlib bashbuild-test" 12 | return_false "package_is_bashlib bashlibs" 13 | return_false "package_is_bashlib test-test" 14 | } 15 | 16 | # load shunit2 17 | source /usr/share/shunit2/shunit2 18 | -------------------------------------------------------------------------------- /src/bashlibs-build-utils/version: -------------------------------------------------------------------------------- 1 | 0.0.128 2 | -------------------------------------------------------------------------------- /src/bashlibs-checks/.bakerc: -------------------------------------------------------------------------------- 1 | PRE_COMPILE_DEPEND="bashlibs-cmake-macros" 2 | -------------------------------------------------------------------------------- /src/bashlibs-checks/AUTHORS: -------------------------------------------------------------------------------- 1 | Kfir Lavi 2 | -------------------------------------------------------------------------------- /src/bashlibs-checks/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required (VERSION 2.6) 2 | project (bashlibs-checks) 3 | 4 | list(APPEND CMAKE_MODULE_PATH 5 | "/usr/share/cmake-macros/Modules") 6 | list(APPEND CMAKE_MODULE_PATH 7 | "/usr/share/bashlibs/cmake-macros/Modules") 8 | 9 | include(BashLibs) 10 | set(CPACK_DEBIAN_PACKAGE_DEPENDS 11 | "bashlibs-utils, 12 | bashlibs-directories, 13 | bashlibs-shunit2-enhancements (>=0.0.15)") 14 | include(PackageCreator) 15 | 16 | -------------------------------------------------------------------------------- /src/bashlibs-checks/License: -------------------------------------------------------------------------------- 1 | Copyright (c) 2013 ,2014 ,2015 ,2016 ,2017 ,2018 ,2019 ,2020 ,2021 2 | 2022, 2023 Kfir Lavi All rights reserved. 3 | 4 | Redistribution and use in source and binary forms, with or without 5 | modification, are permitted provided that the following conditions are met: 6 | 7 | 1. Redistributions of source code must retain the above copyright notice, 8 | this list of conditions and the following disclaimer. 9 | 2. Redistributions in binary form must reproduce the above copyright 10 | notice, this list of conditions and the following disclaimer in the 11 | documentation and/or other materials provided with the distribution. 12 | 3. Neither the name of Kfir Lavi nor the names of its 13 | contributors may be used to endorse or promote products derived from 14 | this software without specific prior written permission. 15 | 16 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 17 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 18 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 19 | ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 20 | LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 21 | CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 22 | SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 23 | INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 24 | CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 25 | ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 26 | POSSIBILITY OF SUCH DAMAGE. 27 | -------------------------------------------------------------------------------- /src/bashlibs-checks/README: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/bashlibs-checks/TODO: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/bashlibs-checks/version: -------------------------------------------------------------------------------- 1 | 0.0.15 2 | -------------------------------------------------------------------------------- /src/bashlibs-checksum/.bakerc: -------------------------------------------------------------------------------- 1 | PRE_COMPILE_DEPEND="bashlibs-cmake-macros" 2 | -------------------------------------------------------------------------------- /src/bashlibs-checksum/AUTHORS: -------------------------------------------------------------------------------- 1 | Kfir Lavi 2 | -------------------------------------------------------------------------------- /src/bashlibs-checksum/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required (VERSION 2.6) 2 | project (bashlibs-checksum) 3 | 4 | list(APPEND CMAKE_MODULE_PATH 5 | "/usr/share/cmake-macros/Modules") 6 | list(APPEND CMAKE_MODULE_PATH 7 | "/usr/share/bashlibs/cmake-macros/Modules") 8 | 9 | include(BashLibs) 10 | set(CPACK_DEBIAN_PACKAGE_DEPENDS 11 | "bashlibs-utils, 12 | bashlibs-directories, 13 | bashlibs-shunit2-enhancements (>=0.0.15)") 14 | include(PackageCreator) 15 | 16 | -------------------------------------------------------------------------------- /src/bashlibs-checksum/README: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/bashlibs-checksum/TODO: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/bashlibs-checksum/lib/checksum.sh: -------------------------------------------------------------------------------- 1 | create_md5() { 2 | local filename=$1 3 | local name=$(basename $filename) 4 | local dir=$(dirname $filename) 5 | 6 | cd $dir 7 | md5sum $name > $name.md5 8 | cd - > /dev/null 2>&1 9 | } 10 | 11 | create_md5_for_all_files_in_directory() { 12 | local dir=$1 13 | 14 | local i 15 | for i in $(find $dir -maxdepth 1 -type f) 16 | do 17 | create_md5 $i 18 | done 19 | } 20 | -------------------------------------------------------------------------------- /src/bashlibs-checksum/test/test_checksum.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | $(bashlibs --load-base) 3 | include shunit2_enhancements.sh 4 | include checksum.sh 5 | include directories.sh 6 | 7 | tempfile() { 8 | echo $(workdir)/bashlibs_checksum_test_tmpfile 9 | } 10 | 11 | setUp() { 12 | create_workdir 13 | echo -n > $(tempfile) 14 | echo 1 > $(workdir)/a 15 | echo 2 > $(workdir)/b 16 | } 17 | 18 | tearDown() { 19 | remove_workdir 20 | true 21 | } 22 | 23 | test_create_md5() { 24 | echo "just a string" > $(tempfile) 25 | create_md5 $(tempfile) 26 | file_should_exist $(tempfile).md5 27 | 28 | returns \ 29 | "700ee18e43340071b8576a69e3ada352 $(basename $(tempfile))" \ 30 | "cat $(tempfile).md5" 31 | } 32 | 33 | test_create_md5_for_all_files_in_directory() { 34 | create_md5_for_all_files_in_directory $(workdir) 35 | file_should_exist $(workdir)/a.md5 36 | file_should_exist $(workdir)/b.md5 37 | 38 | returns \ 39 | "b026324c6904b2a9cb4b88d6d61c81d1 a" \ 40 | "cat $(workdir)/a.md5" 41 | 42 | returns \ 43 | "26ab0db90d72e28ad0ba1e22ee510510 b" \ 44 | "cat $(workdir)/b.md5" 45 | } 46 | 47 | # load shunit2 48 | source /usr/share/shunit2/shunit2 49 | -------------------------------------------------------------------------------- /src/bashlibs-checksum/version: -------------------------------------------------------------------------------- 1 | 0.0.8 2 | -------------------------------------------------------------------------------- /src/bashlibs-chroot/.bakerc: -------------------------------------------------------------------------------- 1 | PRE_COMPILE_DEPEND="bashlibs-cmake-macros" 2 | -------------------------------------------------------------------------------- /src/bashlibs-chroot/AUTHORS: -------------------------------------------------------------------------------- 1 | Kfir Lavi 2 | -------------------------------------------------------------------------------- /src/bashlibs-chroot/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required (VERSION 2.6) 2 | project (bashlibs-chroot) 3 | 4 | list(APPEND CMAKE_MODULE_PATH 5 | "/usr/share/cmake-macros/Modules") 6 | list(APPEND CMAKE_MODULE_PATH 7 | "/usr/share/bashlibs/cmake-macros/Modules") 8 | 9 | include(BashLibs) 10 | set(CPACK_DEBIAN_PACKAGE_DEPENDS 11 | "bashlibs-utils, 12 | bashlibs-directories") 13 | include(PackageCreator) 14 | 15 | -------------------------------------------------------------------------------- /src/bashlibs-chroot/License: -------------------------------------------------------------------------------- 1 | Copyright (c) 2013 ,2014 ,2015 ,2016 ,2017 ,2018 ,2019 ,2020 ,2021 2 | 2022, 2023 Kfir Lavi All rights reserved. 3 | 4 | Redistribution and use in source and binary forms, with or without 5 | modification, are permitted provided that the following conditions are met: 6 | 7 | 1. Redistributions of source code must retain the above copyright notice, 8 | this list of conditions and the following disclaimer. 9 | 2. Redistributions in binary form must reproduce the above copyright 10 | notice, this list of conditions and the following disclaimer in the 11 | documentation and/or other materials provided with the distribution. 12 | 3. Neither the name of Kfir Lavi nor the names of its 13 | contributors may be used to endorse or promote products derived from 14 | this software without specific prior written permission. 15 | 16 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 17 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 18 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 19 | ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 20 | LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 21 | CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 22 | SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 23 | INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 24 | CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 25 | ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 26 | POSSIBILITY OF SUCH DAMAGE. 27 | -------------------------------------------------------------------------------- /src/bashlibs-chroot/README: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/bashlibs-chroot/TODO: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/bashlibs-chroot/version: -------------------------------------------------------------------------------- 1 | 0.0.14 2 | -------------------------------------------------------------------------------- /src/bashlibs-cmake-macros/.bakerc: -------------------------------------------------------------------------------- 1 | PRE_COMPILE_DEPEND="cmake-macros>=0.0.12" 2 | -------------------------------------------------------------------------------- /src/bashlibs-cmake-macros/AUTHORS: -------------------------------------------------------------------------------- 1 | Kfir Lavi 2 | -------------------------------------------------------------------------------- /src/bashlibs-cmake-macros/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required (VERSION 2.6) 2 | project (bashlibs-cmake-macros) 3 | 4 | list(APPEND CMAKE_MODULE_PATH 5 | "/usr/share/cmake-macros/Modules") 6 | 7 | list(APPEND CMAKE_MODULE_PATH 8 | "${CMAKE_SOURCE_DIR}/Modules") 9 | 10 | include(BashLibs) 11 | set(CPACK_DEBIAN_PACKAGE_DEPENDS 12 | "cmake-macros") 13 | include(PackageCreator) 14 | 15 | install( 16 | DIRECTORY "Modules" 17 | DESTINATION "${BASHLIBS_SHARE_DIR}/cmake-macros") 18 | -------------------------------------------------------------------------------- /src/bashlibs-cmake-macros/README: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/bashlibs-cmake-macros/TODO: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kfirlavi/bashlibs/f19ed0b62ceb9172491bea1a9706fefaccaa2123/src/bashlibs-cmake-macros/TODO -------------------------------------------------------------------------------- /src/bashlibs-cmake-macros/version: -------------------------------------------------------------------------------- 1 | 0.0.20 2 | -------------------------------------------------------------------------------- /src/bashlibs-cmdline/.bakerc: -------------------------------------------------------------------------------- 1 | PRE_COMPILE_DEPEND="bashlibs-cmake-macros" 2 | -------------------------------------------------------------------------------- /src/bashlibs-cmdline/AUTHORS: -------------------------------------------------------------------------------- 1 | Kfir Lavi 2 | -------------------------------------------------------------------------------- /src/bashlibs-cmdline/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required (VERSION 2.6) 2 | project (bashlibs-cmdline) 3 | 4 | list(APPEND CMAKE_MODULE_PATH 5 | "/usr/share/cmake-macros/Modules") 6 | list(APPEND CMAKE_MODULE_PATH 7 | "/usr/share/bashlibs/cmake-macros/Modules") 8 | 9 | include(BashLibs) 10 | set(CPACK_DEBIAN_PACKAGE_DEPENDS "bashlibs-utils") 11 | include(PackageCreator) 12 | 13 | -------------------------------------------------------------------------------- /src/bashlibs-cmdline/License: -------------------------------------------------------------------------------- 1 | Copyright (c) 2013 ,2014 ,2015 ,2016 ,2017 ,2018 ,2019 ,2020 ,2021 2 | 2022, 2023 Kfir Lavi All rights reserved. 3 | 4 | Redistribution and use in source and binary forms, with or without 5 | modification, are permitted provided that the following conditions are met: 6 | 7 | 1. Redistributions of source code must retain the above copyright notice, 8 | this list of conditions and the following disclaimer. 9 | 2. Redistributions in binary form must reproduce the above copyright 10 | notice, this list of conditions and the following disclaimer in the 11 | documentation and/or other materials provided with the distribution. 12 | 3. Neither the name of Kfir Lavi nor the names of its 13 | contributors may be used to endorse or promote products derived from 14 | this software without specific prior written permission. 15 | 16 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 17 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 18 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 19 | ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 20 | LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 21 | CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 22 | SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 23 | INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 24 | CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 25 | ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 26 | POSSIBILITY OF SUCH DAMAGE. 27 | -------------------------------------------------------------------------------- /src/bashlibs-cmdline/README: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/bashlibs-cmdline/TODO: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/bashlibs-cmdline/lib/cmdline.sh: -------------------------------------------------------------------------------- 1 | args_without_extra_args() { 2 | args \ 3 | | sed 's/\(.*\) -- .*/\1/' 4 | } 5 | 6 | extra_args() { 7 | args \ 8 | | sed 's/.* -- \(.*\)/\1/' 9 | } 10 | 11 | cmdline_args_provided() { 12 | args \ 13 | | grep -q "[^ ]" 14 | } 15 | -------------------------------------------------------------------------------- /src/bashlibs-cmdline/test/test_cmdline.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | $(bashlibs --load-base) 3 | include shunit2_enhancements.sh 4 | include cmdline.sh 5 | 6 | args() { 7 | echo '--before --test-one -n -p -- this is extra args --one --two-three -a -b -c' 8 | } 9 | 10 | test_args_without_extra_args() { 11 | returns '--before --test-one -n -p' \ 12 | "args_without_extra_args" 13 | } 14 | 15 | test_extra_args() { 16 | returns 'this is extra args --one --two-three -a -b -c' \ 17 | "extra_args" 18 | } 19 | 20 | # load shunit2 21 | source /usr/share/shunit2/shunit2 22 | -------------------------------------------------------------------------------- /src/bashlibs-cmdline/version: -------------------------------------------------------------------------------- 1 | 0.0.9 2 | -------------------------------------------------------------------------------- /src/bashlibs-code-clarity/.bakerc: -------------------------------------------------------------------------------- 1 | PRE_COMPILE_DEPEND="bashlibs-cmake-macros" 2 | -------------------------------------------------------------------------------- /src/bashlibs-code-clarity/AUTHORS: -------------------------------------------------------------------------------- 1 | Kfir Lavi 2 | -------------------------------------------------------------------------------- /src/bashlibs-code-clarity/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required (VERSION 2.6) 2 | project (bashlibs-code-clarity) 3 | 4 | list(APPEND CMAKE_MODULE_PATH 5 | "/usr/share/cmake-macros/Modules") 6 | list(APPEND CMAKE_MODULE_PATH 7 | "/usr/share/bashlibs/cmake-macros/Modules") 8 | 9 | include(BashLibs) 10 | set(CPACK_DEBIAN_PACKAGE_DEPENDS 11 | "bashlibs-utils (>= 0.0.6), 12 | bashlibs-shunit2-enhancements (>= 0.0.2)") 13 | include(PackageCreator) 14 | 15 | -------------------------------------------------------------------------------- /src/bashlibs-code-clarity/README: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/bashlibs-code-clarity/TODO: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kfirlavi/bashlibs/f19ed0b62ceb9172491bea1a9706fefaccaa2123/src/bashlibs-code-clarity/TODO -------------------------------------------------------------------------------- /src/bashlibs-code-clarity/lib/code_clarity.sh: -------------------------------------------------------------------------------- 1 | is_empty() { 2 | local var=$1 3 | 4 | [[ -z $var ]] 5 | } 6 | 7 | is_not_empty() { 8 | local var=$1 9 | 10 | [[ -n $var ]] 11 | } 12 | 13 | is_defined() { 14 | local var=$1 15 | 16 | is_not_empty $var 17 | } 18 | 19 | is_not_defined() { 20 | local var=$1 21 | 22 | is_empty $var 23 | } 24 | -------------------------------------------------------------------------------- /src/bashlibs-code-clarity/test/test_code_clarity.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | $(bashlibs --load-base) 3 | include shunit2_enhancements.sh 4 | include code_clarity.sh 5 | 6 | test_is_empty() { 7 | return_true "is_empty $none_variable" 8 | 9 | local var1 10 | return_true "is_empty $var1" 11 | 12 | local var2="str" 13 | return_false "is_empty $var2" 14 | 15 | local var2="" 16 | return_true "is_empty $var2" 17 | } 18 | 19 | test_is_not_empty() { 20 | return_false "is_not_empty $none_variable" 21 | 22 | local var1 23 | return_false "is_not_empty $var1" 24 | 25 | local var2="str" 26 | return_true "is_not_empty $var2" 27 | 28 | local var2="" 29 | return_false "is_not_empty $var2" 30 | } 31 | 32 | test_is_defined() { 33 | return_false "is_defined $none_variable" 34 | 35 | local var1 36 | return_false "is_defined $var1" 37 | 38 | local var2="str" 39 | return_true "is_defined $var2" 40 | 41 | local var2="" 42 | return_false "is_defined $var2" 43 | } 44 | 45 | test_is_not_defined() { 46 | return_true "is_not_defined $none_variable" 47 | 48 | local var1 49 | return_true "is_not_defined $var1" 50 | 51 | local var2="str" 52 | return_false "is_not_defined $var2" 53 | 54 | local var2="" 55 | return_true "is_not_defined $var2" 56 | } 57 | 58 | # load shunit2 59 | source /usr/share/shunit2/shunit2 60 | -------------------------------------------------------------------------------- /src/bashlibs-code-clarity/version: -------------------------------------------------------------------------------- 1 | 0.0.14 2 | -------------------------------------------------------------------------------- /src/bashlibs-colors/.bakerc: -------------------------------------------------------------------------------- 1 | PRE_COMPILE_DEPEND="bashlibs-cmake-macros" 2 | -------------------------------------------------------------------------------- /src/bashlibs-colors/AUTHORS: -------------------------------------------------------------------------------- 1 | Kfir Lavi 2 | -------------------------------------------------------------------------------- /src/bashlibs-colors/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required (VERSION 2.6) 2 | project (bashlibs-colors) 3 | 4 | list(APPEND CMAKE_MODULE_PATH 5 | "/usr/share/cmake-macros/Modules") 6 | list(APPEND CMAKE_MODULE_PATH 7 | "/usr/share/bashlibs/cmake-macros/Modules") 8 | 9 | include(BashLibs) 10 | set(CPACK_DEBIAN_PACKAGE_DEPENDS 11 | "bashlibs-utils (>= 0.0.6), 12 | bashlibs-shunit2-enhancements (>= 0.0.2)") 13 | include(PackageCreator) 14 | 15 | -------------------------------------------------------------------------------- /src/bashlibs-colors/License: -------------------------------------------------------------------------------- 1 | Copyright (c) 2013 ,2014 ,2015 ,2016 ,2017 ,2018 ,2019 ,2020 ,2021 2 | 2022, 2023 Kfir Lavi All rights reserved. 3 | 4 | Redistribution and use in source and binary forms, with or without 5 | modification, are permitted provided that the following conditions are met: 6 | 7 | 1. Redistributions of source code must retain the above copyright notice, 8 | this list of conditions and the following disclaimer. 9 | 2. Redistributions in binary form must reproduce the above copyright 10 | notice, this list of conditions and the following disclaimer in the 11 | documentation and/or other materials provided with the distribution. 12 | 3. Neither the name of Kfir Lavi nor the names of its 13 | contributors may be used to endorse or promote products derived from 14 | this software without specific prior written permission. 15 | 16 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 17 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 18 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 19 | ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 20 | LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 21 | CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 22 | SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 23 | INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 24 | CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 25 | ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 26 | POSSIBILITY OF SUCH DAMAGE. 27 | -------------------------------------------------------------------------------- /src/bashlibs-colors/README: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/bashlibs-colors/TODO: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/bashlibs-colors/test/test_colors.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | $(bashlibs --load-base) 3 | include shunit2_enhancements.sh 4 | include colors.sh 5 | 6 | test_to_upper() { 7 | returns ALL_LOWER "to_upper all_lower" 8 | returns PARTIAL_UPPER "to_upper PARTIAL_upper" 9 | returns ALREADY_UPPER "to_upper ALREADY_UPPER" 10 | } 11 | 12 | test_spaces_to_underscors() { 13 | returns light_blue "spaces_to_underscors light blue" 14 | returns light_blue "spaces_to_underscors light blue" 15 | } 16 | 17 | test_strip_colors() { 18 | returns "*12345*" \ 19 | "strip_colors \"$(color blue)*$(color yellow)12345$(color green)*$(no_color)\"" 20 | 21 | returns " *12345* " \ 22 | "strip_colors \"$(color blue) *$(color yellow)12345$(color green)* $(no_color)\"" 23 | } 24 | 25 | #test_color() { 26 | # returns '\033[0;34m' "color blue" 27 | #} 28 | 29 | # load shunit2 30 | source /usr/share/shunit2/shunit2 31 | -------------------------------------------------------------------------------- /src/bashlibs-colors/version: -------------------------------------------------------------------------------- 1 | 0.0.15 2 | -------------------------------------------------------------------------------- /src/bashlibs-config/.bakerc: -------------------------------------------------------------------------------- 1 | PRE_COMPILE_DEPEND="bashlibs-cmake-macros" 2 | -------------------------------------------------------------------------------- /src/bashlibs-config/AUTHORS: -------------------------------------------------------------------------------- 1 | Kfir Lavi 2 | -------------------------------------------------------------------------------- /src/bashlibs-config/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required (VERSION 2.6) 2 | project (bashlibs-config) 3 | 4 | list(APPEND CMAKE_MODULE_PATH 5 | "/usr/share/cmake-macros/Modules") 6 | list(APPEND CMAKE_MODULE_PATH 7 | "/usr/share/bashlibs/cmake-macros/Modules") 8 | 9 | include(BashLibs) 10 | set(CPACK_DEBIAN_PACKAGE_DEPENDS 11 | "bashlibs-shunit2-enhancements (>= 0.0.16), 12 | bashlibs-verbose, 13 | bashlibs-string (>= 0.0.8), 14 | bashlibs-checks (>= 0.0.3), 15 | bashlibs-utils") 16 | include(PackageCreator) 17 | 18 | -------------------------------------------------------------------------------- /src/bashlibs-config/README: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/bashlibs-config/TODO: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/bashlibs-config/version: -------------------------------------------------------------------------------- 1 | 0.0.21 2 | -------------------------------------------------------------------------------- /src/bashlibs-date/.bakerc: -------------------------------------------------------------------------------- 1 | PRE_COMPILE_DEPEND="bashlibs-cmake-macros" 2 | -------------------------------------------------------------------------------- /src/bashlibs-date/AUTHORS: -------------------------------------------------------------------------------- 1 | Kfir Lavi 2 | -------------------------------------------------------------------------------- /src/bashlibs-date/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required (VERSION 2.6) 2 | project (bashlibs-date) 3 | 4 | list(APPEND CMAKE_MODULE_PATH 5 | "/usr/share/cmake-macros/Modules") 6 | list(APPEND CMAKE_MODULE_PATH 7 | "/usr/share/bashlibs/cmake-macros/Modules") 8 | 9 | include(BashLibs) 10 | set(CPACK_DEBIAN_PACKAGE_DEPENDS 11 | "bashlibs-utils, 12 | bashlibs-config") 13 | include(PackageCreator) 14 | 15 | include(InstallDocs) 16 | -------------------------------------------------------------------------------- /src/bashlibs-date/README: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/bashlibs-date/TODO: -------------------------------------------------------------------------------- 1 | * add unit tests (how to mock date?) 2 | -------------------------------------------------------------------------------- /src/bashlibs-date/version: -------------------------------------------------------------------------------- 1 | 0.0.11 2 | -------------------------------------------------------------------------------- /src/bashlibs-directories/.bakerc: -------------------------------------------------------------------------------- 1 | PRE_COMPILE_DEPEND="bashlibs-cmake-macros" 2 | -------------------------------------------------------------------------------- /src/bashlibs-directories/AUTHORS: -------------------------------------------------------------------------------- 1 | Kfir Lavi 2 | -------------------------------------------------------------------------------- /src/bashlibs-directories/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required (VERSION 2.6) 2 | project (bashlibs-directories) 3 | 4 | list(APPEND CMAKE_MODULE_PATH 5 | "/usr/share/cmake-macros/Modules") 6 | list(APPEND CMAKE_MODULE_PATH 7 | "/usr/share/bashlibs/cmake-macros/Modules") 8 | 9 | include(BashLibs) 10 | set(CPACK_DEBIAN_PACKAGE_DEPENDS 11 | "bashlibs-utils, 12 | bashlibs-string, 13 | bashlibs-config") 14 | include(PackageCreator) 15 | 16 | -------------------------------------------------------------------------------- /src/bashlibs-directories/README: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/bashlibs-directories/TODO: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/bashlibs-directories/version: -------------------------------------------------------------------------------- 1 | 0.0.21 2 | -------------------------------------------------------------------------------- /src/bashlibs-disks/.bakerc: -------------------------------------------------------------------------------- 1 | PRE_COMPILE_DEPEND="bashlibs-cmake-macros" 2 | -------------------------------------------------------------------------------- /src/bashlibs-disks/AUTHORS: -------------------------------------------------------------------------------- 1 | Kfir Lavi 2 | -------------------------------------------------------------------------------- /src/bashlibs-disks/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required (VERSION 2.6) 2 | project (bashlibs-disks) 3 | 4 | list(APPEND CMAKE_MODULE_PATH 5 | "/usr/share/cmake-macros/Modules") 6 | list(APPEND CMAKE_MODULE_PATH 7 | "/usr/share/bashlibs/cmake-macros/Modules") 8 | 9 | include(BashLibs) 10 | set(CPACK_DEBIAN_PACKAGE_DEPENDS 11 | "bashlibs-utils, 12 | mtools, 13 | util-linux") 14 | include(PackageCreator) 15 | 16 | -------------------------------------------------------------------------------- /src/bashlibs-disks/README: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/bashlibs-disks/TODO: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/bashlibs-disks/version: -------------------------------------------------------------------------------- 1 | 0.0.25 2 | -------------------------------------------------------------------------------- /src/bashlibs-dns/.bakerc: -------------------------------------------------------------------------------- 1 | PRE_COMPILE_DEPEND="bashlibs-cmake-macros" 2 | -------------------------------------------------------------------------------- /src/bashlibs-dns/AUTHORS: -------------------------------------------------------------------------------- 1 | Kfir Lavi 2 | -------------------------------------------------------------------------------- /src/bashlibs-dns/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required (VERSION 2.6) 2 | project (bashlibs-dns) 3 | 4 | list(APPEND CMAKE_MODULE_PATH 5 | "/usr/share/cmake-macros/Modules") 6 | list(APPEND CMAKE_MODULE_PATH 7 | "/usr/share/bashlibs/cmake-macros/Modules") 8 | 9 | include(BashLibs) 10 | set(CPACK_DEBIAN_PACKAGE_DEPENDS 11 | "bashlibs-utils, 12 | bashlibs-file-manipulations, 13 | bashlibs-shunit2-enhancements (>=0.0.17)") 14 | include(PackageCreator) 15 | 16 | -------------------------------------------------------------------------------- /src/bashlibs-dns/README: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/bashlibs-dns/TODO: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/bashlibs-dns/lib/hosts.sh: -------------------------------------------------------------------------------- 1 | include file_manipulations.sh 2 | 3 | hosts_file() { 4 | echo /etc/hosts 5 | } 6 | 7 | delete_hosts_entries_by_ip() { 8 | local ip=$1 9 | 10 | [[ -z $ip ]] \ 11 | && return 12 | 13 | delete_line_from_file \ 14 | $(hosts_file) \ 15 | $ip 16 | } 17 | 18 | delete_hosts_entries_by_names() { 19 | local names=$@ 20 | local i 21 | 22 | for i in $names 23 | do 24 | delete_line_from_file_using_pattern \ 25 | $(hosts_file) \ 26 | $i 27 | done 28 | } 29 | 30 | add_hosts_entry() { 31 | local ip=$1; shift 32 | local names=$@ 33 | 34 | add_line_to_file_if_not_exist \ 35 | $(hosts_file) \ 36 | "$ip $names" 37 | } 38 | -------------------------------------------------------------------------------- /src/bashlibs-dns/version: -------------------------------------------------------------------------------- 1 | 0.0.8 2 | -------------------------------------------------------------------------------- /src/bashlibs-file-manipulations/.bakerc: -------------------------------------------------------------------------------- 1 | PRE_COMPILE_DEPEND="bashlibs-cmake-macros" 2 | -------------------------------------------------------------------------------- /src/bashlibs-file-manipulations/AUTHORS: -------------------------------------------------------------------------------- 1 | Kfir Lavi 2 | -------------------------------------------------------------------------------- /src/bashlibs-file-manipulations/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required (VERSION 2.6) 2 | project (bashlibs-file-manipulations) 3 | 4 | list(APPEND CMAKE_MODULE_PATH 5 | "/usr/share/cmake-macros/Modules") 6 | list(APPEND CMAKE_MODULE_PATH 7 | "/usr/share/bashlibs/cmake-macros/Modules") 8 | 9 | include(BashLibs) 10 | set(CPACK_DEBIAN_PACKAGE_DEPENDS 11 | "bashlibs-utils (>= 0.0.6), 12 | bashlibs-shunit2-enhancements (>= 0.0.2)") 13 | include(PackageCreator) 14 | 15 | -------------------------------------------------------------------------------- /src/bashlibs-file-manipulations/README: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/bashlibs-file-manipulations/TODO: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kfirlavi/bashlibs/f19ed0b62ceb9172491bea1a9706fefaccaa2123/src/bashlibs-file-manipulations/TODO -------------------------------------------------------------------------------- /src/bashlibs-file-manipulations/lib/file_manipulations.sh: -------------------------------------------------------------------------------- 1 | add_line_to_file() { 2 | local file=$1; shift 3 | local line=$@ 4 | 5 | echo $line >> $file 6 | } 7 | 8 | delete_line_from_file() { 9 | local file=$1; shift 10 | local line=$@ 11 | 12 | sed -i "\|^$line|d" $file 13 | } 14 | 15 | delete_line_from_file_using_pattern() { 16 | local file=$1; shift 17 | local pattern=$@ 18 | 19 | sed -i "\|$pattern|d" $file 20 | } 21 | 22 | line_in_file() { 23 | local f=$1; shift 24 | local line=$@ 25 | 26 | line=$(echo $line | sed 's/\[/\\\[/g' | sed 's/\]/\\\]/g') 27 | grep -q "^$line$" $f 28 | } 29 | 30 | add_line_to_file_if_not_exist() { 31 | local f=$1; shift 32 | local line=$@ 33 | 34 | line_in_file $f $line \ 35 | || add_line_to_file $f $line 36 | } 37 | -------------------------------------------------------------------------------- /src/bashlibs-file-manipulations/version: -------------------------------------------------------------------------------- 1 | 0.0.16 2 | -------------------------------------------------------------------------------- /src/bashlibs-gentoo/.bakerc: -------------------------------------------------------------------------------- 1 | PRE_COMPILE_DEPEND="bashlibs-cmake-macros>=0.0.17" 2 | -------------------------------------------------------------------------------- /src/bashlibs-gentoo/AUTHORS: -------------------------------------------------------------------------------- 1 | Kfir Lavi 2 | -------------------------------------------------------------------------------- /src/bashlibs-gentoo/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required (VERSION 2.6) 2 | project (bashlibs-gentoo) 3 | 4 | list(APPEND CMAKE_MODULE_PATH 5 | "/usr/share/cmake-macros/Modules") 6 | list(APPEND CMAKE_MODULE_PATH 7 | "/usr/share/bashlibs/cmake-macros/Modules") 8 | 9 | include(BashLibs) 10 | include(PackageCreator) 11 | 12 | -------------------------------------------------------------------------------- /src/bashlibs-gentoo/README: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kfirlavi/bashlibs/f19ed0b62ceb9172491bea1a9706fefaccaa2123/src/bashlibs-gentoo/README -------------------------------------------------------------------------------- /src/bashlibs-gentoo/TODO: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kfirlavi/bashlibs/f19ed0b62ceb9172491bea1a9706fefaccaa2123/src/bashlibs-gentoo/TODO -------------------------------------------------------------------------------- /src/bashlibs-gentoo/lib/openrc.sh: -------------------------------------------------------------------------------- 1 | add_openrc_service_to_startup() { 2 | local service=$1 3 | 4 | vinfo "add service $service to startup" 5 | 6 | rc-update add $service 7 | } 8 | 9 | remove_openrc_service_from_startup() { 10 | local service=$1 11 | 12 | vinfo "remove service $service from startup" 13 | 14 | rc-update del $service 15 | } 16 | 17 | command_openrc_service() { 18 | local service=$1 19 | local cmd=$2 20 | local pre_cmd=$3 21 | 22 | vinfo "$cmd service $service" 23 | 24 | $pre_cmd /etc/init.d/$service $cmd 25 | } 26 | 27 | start_openrc_service() { 28 | local service=$1 29 | local pre_cmd=$2 30 | 31 | command_openrc_service $service start $pre_cmd 32 | } 33 | 34 | stop_openrc_service() { 35 | local service=$1 36 | local pre_cmd=$2 37 | 38 | command_openrc_service $service stop $pre_cmd 39 | } 40 | 41 | restart_openrc_service() { 42 | local service=$1 43 | local pre_cmd=$2 44 | 45 | command_openrc_service $service restart $pre_cmd 46 | } 47 | -------------------------------------------------------------------------------- /src/bashlibs-gentoo/lib/portage.sh: -------------------------------------------------------------------------------- 1 | include config.sh 2 | 3 | emerge_info() { 4 | emerge --info 2>&1 5 | } 6 | 7 | emerge_info_vars() { 8 | emerge_info \ 9 | | grep '="' 10 | } 11 | 12 | emerge_info_var_line() { 13 | local var_name=$1 14 | 15 | emerge_info_vars \ 16 | | grep "^$var_name=" 17 | } 18 | 19 | emerge_info_var_value() { 20 | local var_name=$1 21 | 22 | emerge_info_var_line $var_name \ 23 | | cut -d '"' -f 2 24 | } 25 | 26 | emerge_info_vars_to_functions() { 27 | local tmp_file=$(mktemp) 28 | 29 | emerge_info_vars > $tmp_file 30 | load_config $tmp_file emerge_env_ 31 | 32 | rm -f $tmp_file 33 | } 34 | -------------------------------------------------------------------------------- /src/bashlibs-gentoo/test/test_openrc.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | $(bashlibs --load-base) 3 | include shunit2_enhancements.sh 4 | include openrc.sh 5 | 6 | rc-update() { 7 | local params=$@ 8 | 9 | echo rc-update $params 10 | } 11 | 12 | setUp() { 13 | set_verbose_level_to_error 14 | } 15 | 16 | test_add_openrc_service_to_startup() { 17 | returns "rc-update add my_service" \ 18 | "add_openrc_service_to_startup my_service" 19 | } 20 | 21 | test_remove_openrc_service_from_startup() { 22 | returns "rc-update del my_service" \ 23 | "remove_openrc_service_from_startup my_service" 24 | } 25 | 26 | test_start_openrc_service() { 27 | returns "/etc/init.d/my_service start" \ 28 | "start_openrc_service my_service echo" 29 | } 30 | 31 | test_stop_openrc_service() { 32 | returns "/etc/init.d/my_service stop" \ 33 | "stop_openrc_service my_service echo" 34 | } 35 | 36 | test_restart_openrc_service() { 37 | returns "/etc/init.d/my_service restart" \ 38 | "restart_openrc_service my_service echo" 39 | } 40 | 41 | # load shunit2 42 | source /usr/share/shunit2/shunit2 43 | -------------------------------------------------------------------------------- /src/bashlibs-gentoo/version: -------------------------------------------------------------------------------- 1 | 0.0.8 2 | -------------------------------------------------------------------------------- /src/bashlibs-git/.bakerc: -------------------------------------------------------------------------------- 1 | PRE_COMPILE_DEPEND="bashlibs-cmake-macros" 2 | -------------------------------------------------------------------------------- /src/bashlibs-git/AUTHORS: -------------------------------------------------------------------------------- 1 | Kfir Lavi 2 | -------------------------------------------------------------------------------- /src/bashlibs-git/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required (VERSION 2.6) 2 | project (bashlibs-git) 3 | 4 | list(APPEND CMAKE_MODULE_PATH 5 | "/usr/share/cmake-macros/Modules") 6 | list(APPEND CMAKE_MODULE_PATH 7 | "/usr/share/bashlibs/cmake-macros/Modules") 8 | 9 | include(BashLibs) 10 | set(CPACK_DEBIAN_PACKAGE_DEPENDS 11 | "bashlibs-utils, 12 | bashlibs-directories, 13 | bashlibs-checks, 14 | git, 15 | bashlibs-shunit2-enhancements (>=0.0.17)") 16 | include(PackageCreator) 17 | 18 | -------------------------------------------------------------------------------- /src/bashlibs-git/README: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/bashlibs-git/TODO: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/bashlibs-git/version: -------------------------------------------------------------------------------- 1 | 0.0.12 2 | -------------------------------------------------------------------------------- /src/bashlibs-grub/.bakerc: -------------------------------------------------------------------------------- 1 | PRE_COMPILE_DEPEND="bashlibs-cmake-macros" 2 | -------------------------------------------------------------------------------- /src/bashlibs-grub/AUTHORS: -------------------------------------------------------------------------------- 1 | Kfir Lavi 2 | -------------------------------------------------------------------------------- /src/bashlibs-grub/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required (VERSION 2.6) 2 | project (bashlibs-grub) 3 | 4 | list(APPEND CMAKE_MODULE_PATH 5 | "/usr/share/cmake-macros/Modules") 6 | list(APPEND CMAKE_MODULE_PATH 7 | "/usr/share/bashlibs/cmake-macros/Modules") 8 | 9 | include(BashLibs) 10 | set(CPACK_DEBIAN_PACKAGE_DEPENDS 11 | "bashlibs-utils (>= 0.0.6), 12 | bashlibs-file-manipulations, 13 | bashlibs-shunit2-enhancements (>= 0.0.2)") 14 | include(PackageCreator) 15 | 16 | -------------------------------------------------------------------------------- /src/bashlibs-grub/README: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/bashlibs-grub/TODO: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/bashlibs-grub/version: -------------------------------------------------------------------------------- 1 | 0.0.18 2 | -------------------------------------------------------------------------------- /src/bashlibs-initramfs/.bakerc: -------------------------------------------------------------------------------- 1 | PRE_COMPILE_DEPEND="bashlibs-cmake-macros" 2 | -------------------------------------------------------------------------------- /src/bashlibs-initramfs/AUTHORS: -------------------------------------------------------------------------------- 1 | Kfir Lavi 2 | -------------------------------------------------------------------------------- /src/bashlibs-initramfs/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required (VERSION 2.6) 2 | project (bashlibs-initramfs) 3 | 4 | list(APPEND CMAKE_MODULE_PATH 5 | "/usr/share/cmake-macros/Modules") 6 | list(APPEND CMAKE_MODULE_PATH 7 | "/usr/share/bashlibs/cmake-macros/Modules") 8 | 9 | include(BashLibs) 10 | set(CPACK_DEBIAN_PACKAGE_DEPENDS 11 | "cpio, 12 | bashlibs-utils (>= 0.0.6), 13 | bashlibs-verbose (>= 0.0.5), 14 | bashlibs-file-manipulations") 15 | include(PackageCreator) 16 | 17 | -------------------------------------------------------------------------------- /src/bashlibs-initramfs/README: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/bashlibs-initramfs/TODO: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kfirlavi/bashlibs/f19ed0b62ceb9172491bea1a9706fefaccaa2123/src/bashlibs-initramfs/TODO -------------------------------------------------------------------------------- /src/bashlibs-initramfs/test/test_initramfs.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | $(bashlibs --load-base) 3 | include shunit2_enhancements.sh 4 | include initramfs.sh 5 | include directories.sh 6 | 7 | create_test_initramfs() { 8 | local tmpdir=$(mktemp -d) 9 | local initrd_file=$(mktemp /tmp/initrd.XXXXX) 10 | 11 | cd $tmpdir 12 | 13 | touch test_module.ko 14 | find | cpio -o > $initrd_file 2> /dev/null 15 | gzip $initrd_file 16 | mv $initrd_file{.gz,} 17 | 18 | safe_delete_directory_from_tmp $tmpdir 19 | 20 | echo $initrd_file 21 | 22 | cd - > /dev/null 2>&1 23 | } 24 | 25 | setUp() { 26 | FILE=$(mktemp) 27 | modfile() { 28 | echo $FILE 29 | } 30 | } 31 | 32 | tearDown() { 33 | [[ -f $FILE ]] \ 34 | && rm -f $FILE 35 | } 36 | 37 | 38 | test_initramfs_register_module() { 39 | initramfs_register_module aufs 40 | 41 | it_should "include the module aufs" \ 42 | "grep -q aufs $(modfile)" 43 | } 44 | 45 | test_initramfs_unregister_module() { 46 | initramfs_register_module aufs 47 | initramfs_unregister_module aufs 48 | 49 | it_shouldnt "include the module aufs" \ 50 | "grep -q aufs $(modfile)" 51 | } 52 | 53 | test_is_initramfs_include_module() { 54 | local initrd=$(create_test_initramfs) 55 | 56 | return_true "is_initramfs_include_module $initrd test_module.ko" 57 | return_false "is_initramfs_include_module $initrd non_exist_module.ko" 58 | 59 | rm -f $initrd 60 | } 61 | 62 | # load shunit2 63 | source /usr/share/shunit2/shunit2 64 | -------------------------------------------------------------------------------- /src/bashlibs-initramfs/version: -------------------------------------------------------------------------------- 1 | 0.0.19 2 | -------------------------------------------------------------------------------- /src/bashlibs-kernel-cmdline/.bakerc: -------------------------------------------------------------------------------- 1 | PRE_COMPILE_DEPEND="bashlibs-cmake-macros" 2 | -------------------------------------------------------------------------------- /src/bashlibs-kernel-cmdline/AUTHORS: -------------------------------------------------------------------------------- 1 | Kfir Lavi 2 | -------------------------------------------------------------------------------- /src/bashlibs-kernel-cmdline/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required (VERSION 2.6) 2 | project (bashlibs-kernel-cmdline) 3 | 4 | list(APPEND CMAKE_MODULE_PATH 5 | "/usr/share/cmake-macros/Modules") 6 | list(APPEND CMAKE_MODULE_PATH 7 | "/usr/share/bashlibs/cmake-macros/Modules") 8 | 9 | include(BashLibs) 10 | set(CPACK_DEBIAN_PACKAGE_DEPENDS 11 | "bashlibs-utils, 12 | bashlibs-string") 13 | include(PackageCreator) 14 | 15 | -------------------------------------------------------------------------------- /src/bashlibs-kernel-cmdline/README: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/bashlibs-kernel-cmdline/TODO: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/bashlibs-kernel-cmdline/version: -------------------------------------------------------------------------------- 1 | 0.0.14 2 | -------------------------------------------------------------------------------- /src/bashlibs-kernel-modules/.bakerc: -------------------------------------------------------------------------------- 1 | PRE_COMPILE_DEPEND="bashlibs-cmake-macros" 2 | -------------------------------------------------------------------------------- /src/bashlibs-kernel-modules/AUTHORS: -------------------------------------------------------------------------------- 1 | Kfir Lavi 2 | -------------------------------------------------------------------------------- /src/bashlibs-kernel-modules/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required (VERSION 2.6) 2 | project (bashlibs-kernel-modules) 3 | 4 | list(APPEND CMAKE_MODULE_PATH 5 | "/usr/share/cmake-macros/Modules") 6 | list(APPEND CMAKE_MODULE_PATH 7 | "/usr/share/bashlibs/cmake-macros/Modules") 8 | 9 | include(BashLibs) 10 | set(CPACK_DEBIAN_PACKAGE_DEPENDS "bashlibs-utils") 11 | include(PackageCreator) 12 | 13 | -------------------------------------------------------------------------------- /src/bashlibs-kernel-modules/README: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/bashlibs-kernel-modules/TODO: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/bashlibs-kernel-modules/lib/kernel_modules.sh: -------------------------------------------------------------------------------- 1 | kernel_module_loaded() { 2 | local module=$1 3 | 4 | lsmod \ 5 | | grep -q ^$module 6 | } 7 | 8 | load_kernel_module() { 9 | local module=$1; shift 10 | local params=$@ 11 | 12 | kernel_module_loaded $module \ 13 | && return 14 | 15 | modprobe $module $params 16 | } 17 | 18 | remove_kernel_module() { 19 | local module=$1 20 | 21 | kernel_module_loaded $module \ 22 | || return 23 | 24 | rmmod $module 25 | } 26 | -------------------------------------------------------------------------------- /src/bashlibs-kernel-modules/test/test_kernel_modules.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | $(bashlibs --load-base) 3 | include shunit2_enhancements.sh 4 | include kernel_modules.sh 5 | 6 | oneTimeSetUp() { 7 | lsmod() { 8 | cat __BASHLIBS_PROJECT_TESTS_DIR__/files/lsmod.txt 9 | } 10 | } 11 | 12 | test_kernel_module_loaded() { 13 | return_true "kernel_module_loaded nbd" 14 | return_true "kernel_module_loaded virtio_gpu" 15 | return_false "kernel_module_loaded non_module" 16 | } 17 | 18 | test_load_kernel_module() { 19 | modprobe() { echo $1; } 20 | returns_empty "load_kernel_module nbd" 21 | returns "new_module" "load_kernel_module new_module" 22 | } 23 | 24 | test_remove_kernel_module() { 25 | rmmod() { echo $1; } 26 | returns_empty "remove_kernel_module non_loaded_module" 27 | returns "nbd" "remove_kernel_module nbd" 28 | } 29 | 30 | # load shunit2 31 | source /usr/share/shunit2/shunit2 32 | -------------------------------------------------------------------------------- /src/bashlibs-kernel-modules/version: -------------------------------------------------------------------------------- 1 | 0.0.3 2 | -------------------------------------------------------------------------------- /src/bashlibs-kernel-versioning/.bakerc: -------------------------------------------------------------------------------- 1 | PRE_COMPILE_DEPEND="bashlibs-cmake-macros" 2 | -------------------------------------------------------------------------------- /src/bashlibs-kernel-versioning/AUTHORS: -------------------------------------------------------------------------------- 1 | Kfir Lavi 2 | -------------------------------------------------------------------------------- /src/bashlibs-kernel-versioning/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required (VERSION 2.6) 2 | project (bashlibs-kernel-versioning) 3 | 4 | list(APPEND CMAKE_MODULE_PATH 5 | "/usr/share/cmake-macros/Modules") 6 | list(APPEND CMAKE_MODULE_PATH 7 | "/usr/share/bashlibs/cmake-macros/Modules") 8 | 9 | include(BashLibs) 10 | set(CPACK_DEBIAN_PACKAGE_DEPENDS 11 | "bashlibs-utils, 12 | bashlibs-config, 13 | bashlibs-versions (>=0.0.5)") 14 | include(PackageCreator) 15 | 16 | -------------------------------------------------------------------------------- /src/bashlibs-kernel-versioning/README: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/bashlibs-kernel-versioning/TODO: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/bashlibs-kernel-versioning/version: -------------------------------------------------------------------------------- 1 | 0.0.11 2 | -------------------------------------------------------------------------------- /src/bashlibs-libvirt/.bakerc: -------------------------------------------------------------------------------- 1 | PRE_COMPILE_DEPEND="bashlibs-cmake-macros" 2 | -------------------------------------------------------------------------------- /src/bashlibs-libvirt/AUTHORS: -------------------------------------------------------------------------------- 1 | Kfir Lavi 2 | -------------------------------------------------------------------------------- /src/bashlibs-libvirt/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required (VERSION 2.6) 2 | project (bashlibs-libvirt) 3 | 4 | list(APPEND CMAKE_MODULE_PATH 5 | "/usr/share/cmake-macros/Modules") 6 | list(APPEND CMAKE_MODULE_PATH 7 | "/usr/share/bashlibs/cmake-macros/Modules") 8 | 9 | include(BashLibs) 10 | set(CPACK_DEBIAN_PACKAGE_DEPENDS 11 | "bashlibs-utils, 12 | bashlibs-directories, 13 | bashlibs-config, 14 | bashlibs-string, 15 | libvirt-daemon-system | libvirt-bin, 16 | bashlibs-shunit2-enhancements (>=0.0.12)") 17 | include(PackageCreator) 18 | 19 | -------------------------------------------------------------------------------- /src/bashlibs-libvirt/README: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/bashlibs-libvirt/TODO: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/bashlibs-libvirt/version: -------------------------------------------------------------------------------- 1 | 0.0.27 2 | -------------------------------------------------------------------------------- /src/bashlibs-math/.bakerc: -------------------------------------------------------------------------------- 1 | PRE_COMPILE_DEPEND="bashlibs-cmake-macros" 2 | -------------------------------------------------------------------------------- /src/bashlibs-math/AUTHORS: -------------------------------------------------------------------------------- 1 | Kfir Lavi 2 | -------------------------------------------------------------------------------- /src/bashlibs-math/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required (VERSION 2.6) 2 | project (bashlibs-math) 3 | 4 | list(APPEND CMAKE_MODULE_PATH 5 | "/usr/share/cmake-macros/Modules") 6 | list(APPEND CMAKE_MODULE_PATH 7 | "/usr/share/bashlibs/cmake-macros/Modules") 8 | 9 | include(BashLibs) 10 | set(CPACK_DEBIAN_PACKAGE_DEPENDS "bashlibs-utils") 11 | include(PackageCreator) 12 | -------------------------------------------------------------------------------- /src/bashlibs-math/lib/math.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | min() { 4 | local column=$1 5 | local datafile=$2 6 | 7 | awk "BEGIN {min=9999999999} {if (\$$columnmax) max=\$$column} END {print max}" $datafile 15 | } 16 | 17 | average() { 18 | local column=$1 19 | local datafile=$2 20 | 21 | awk "{ total += \$$column} END { print total/NR }" $datafile 22 | } 23 | 24 | dec_to_hex(){ 25 | local dec=$1 26 | local pad=$2 27 | 28 | printf "%0${pad}x" $dec 29 | } 30 | -------------------------------------------------------------------------------- /src/bashlibs-math/test/test_math.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | $(bashlibs --load-base) 3 | include shunit2_enhancements.sh 4 | include math.sh 5 | 6 | oneTimeSetUp() { 7 | DATA=$(mktemp) 8 | 9 | cat<<-EOF > $DATA 10 | 1.45 3 11 | 1.50 4 12 | 2.95 5 13 | EOF 14 | } 15 | 16 | oneTimeTearDown() { 17 | rm -f $DATA 18 | } 19 | 20 | test_min() { 21 | returns 1.45 "min 1 $DATA" 22 | returns 3 "min 2 $DATA" 23 | } 24 | 25 | test_max() { 26 | returns 2.95 "max 1 $DATA" 27 | returns 5 "max 2 $DATA" 28 | } 29 | 30 | test_average() { 31 | returns 1.96667 "average 1 $DATA" 32 | returns 4 "average 2 $DATA" 33 | } 34 | 35 | test_dec_to_hex() { 36 | returns a "dec_to_hex 10" 37 | returns 0a "dec_to_hex 10 2" 38 | returns 3e8 "dec_to_hex 1000" 39 | returns 3e8 "dec_to_hex 1000 2" 40 | returns 03e8 "dec_to_hex 1000 4" 41 | } 42 | 43 | # load shunit2 44 | source /usr/share/shunit2/shunit2 45 | -------------------------------------------------------------------------------- /src/bashlibs-math/version: -------------------------------------------------------------------------------- 1 | 0.0.9 2 | -------------------------------------------------------------------------------- /src/bashlibs-net/.bakerc: -------------------------------------------------------------------------------- 1 | PRE_COMPILE_DEPEND="bashlibs-cmake-macros>=0.0.17" 2 | -------------------------------------------------------------------------------- /src/bashlibs-net/AUTHORS: -------------------------------------------------------------------------------- 1 | Kfir Lavi 2 | -------------------------------------------------------------------------------- /src/bashlibs-net/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required (VERSION 2.6) 2 | project (bashlibs-net) 3 | 4 | list(APPEND CMAKE_MODULE_PATH 5 | "/usr/share/cmake-macros/Modules") 6 | list(APPEND CMAKE_MODULE_PATH 7 | "/usr/share/bashlibs/cmake-macros/Modules") 8 | 9 | include(BashLibs) 10 | set(CPACK_DEBIAN_PACKAGE_DEPENDS 11 | "bashlibs-utils, 12 | bashlibs-sysfs (>=0.0.11), 13 | bashlibs-config, 14 | bashlibs-directories, 15 | bridge-utils") 16 | include(PackageCreator) 17 | 18 | -------------------------------------------------------------------------------- /src/bashlibs-net/README: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/bashlibs-net/TODO: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/bashlibs-net/lib/net_sysfs.sh: -------------------------------------------------------------------------------- 1 | include sysfs.sh 2 | 3 | sysfs_net_root_path() { 4 | local prefix=$1 5 | 6 | echo $(sysfs_root_path $prefix)/net 7 | } 8 | 9 | sysfs_set_net() { 10 | local subcategory=$1; shift 11 | local param=$1; shift 12 | local value=$@ 13 | 14 | sysfs_set_value \ 15 | $(sysfs_net_root_path)/$subcategory/$param \ 16 | $value 17 | } 18 | 19 | sysfs_set_net_core() { 20 | local param=$1; shift 21 | local value=$@ 22 | 23 | sysfs_set_net core $param $value 24 | } 25 | 26 | sysfs_set_net_ipv4() { 27 | local param=$1; shift 28 | local value=$@ 29 | 30 | sysfs_set_net ipv4 $param $value 31 | } 32 | -------------------------------------------------------------------------------- /src/bashlibs-net/test/support_net.sh: -------------------------------------------------------------------------------- 1 | is_kernel_module_loaded() { 2 | local module=$1 3 | 4 | lsmod \ 5 | | grep -q $module 6 | } 7 | 8 | load_kernel_module() { 9 | local module=$1 10 | 11 | is_kernel_module_loaded $module \ 12 | || modprobe $module 13 | 14 | is_kernel_module_loaded $module \ 15 | || eexit "Can't load kernel module: $module" 16 | } 17 | -------------------------------------------------------------------------------- /src/bashlibs-net/test/test_net_sysfs.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | $(bashlibs --load-base) 3 | include shunit2_enhancements.sh 4 | include directories.sh 5 | include config.sh 6 | include net_sysfs.sh 7 | 8 | oneTimeSetUp() { 9 | create_workdir 10 | mkdir -p $(sysfs_root_path $(workdir))/net/{core,ipv4} 11 | 12 | var_to_function core_tempfile $(sysfs_root_path $(workdir))/net/core/core_param 13 | echo -n > $(core_tempfile) 14 | 15 | var_to_function ipv4_tempfile $(sysfs_root_path $(workdir))/net/ipv4/ipv4_param 16 | echo -n > $(ipv4_tempfile) 17 | } 18 | 19 | oneTimeTearDown() { 20 | remove_workdir 21 | true 22 | } 23 | 24 | test_sysfs_net_root_path() { 25 | returns "/proc/sys/net" "sysfs_net_root_path" 26 | returns "/tmp/proc/sys/net" "sysfs_net_root_path /tmp" 27 | 28 | var_to_function \ 29 | sysfs_net_root_path \ 30 | $(sysfs_root_path $(workdir))/net 31 | } 32 | 33 | test_sysfs_set_net() { 34 | sysfs_set_net core core_param value1 value2 35 | returns "value1 value2" "cat $(core_tempfile)" 36 | } 37 | 38 | test_sysfs_set_net_core() { 39 | sysfs_set_net_core core_param value3 40 | returns "value3" "cat $(core_tempfile)" 41 | } 42 | 43 | test_sysfs_set_net_ipv4() { 44 | sysfs_set_net_ipv4 ipv4_param value4 45 | returns "value4" "cat $(ipv4_tempfile)" 46 | } 47 | 48 | # load shunit2 49 | source /usr/share/shunit2/shunit2 50 | -------------------------------------------------------------------------------- /src/bashlibs-net/version: -------------------------------------------------------------------------------- 1 | 0.0.24 2 | -------------------------------------------------------------------------------- /src/bashlibs-os-detection/.bakerc: -------------------------------------------------------------------------------- 1 | PRE_COMPILE_DEPEND="bashlibs-cmake-macros" 2 | -------------------------------------------------------------------------------- /src/bashlibs-os-detection/AUTHORS: -------------------------------------------------------------------------------- 1 | Kfir Lavi 2 | -------------------------------------------------------------------------------- /src/bashlibs-os-detection/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required (VERSION 2.6) 2 | project (bashlibs-os-detection) 3 | 4 | list(APPEND CMAKE_MODULE_PATH 5 | "/usr/share/cmake-macros/Modules") 6 | list(APPEND CMAKE_MODULE_PATH 7 | "/usr/share/bashlibs/cmake-macros/Modules") 8 | 9 | include(BashLibs) 10 | set(CPACK_DEBIAN_PACKAGE_DEPENDS 11 | "bashlibs-utils (>= 0.0.6), 12 | bashlibs-directories, 13 | bashlibs-ssh, 14 | bashlibs-code-clarity") 15 | include(PackageCreator) 16 | 17 | -------------------------------------------------------------------------------- /src/bashlibs-os-detection/README: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/bashlibs-os-detection/TODO: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kfirlavi/bashlibs/f19ed0b62ceb9172491bea1a9706fefaccaa2123/src/bashlibs-os-detection/TODO -------------------------------------------------------------------------------- /src/bashlibs-os-detection/lib/ubuntu_naming.sh: -------------------------------------------------------------------------------- 1 | kinetic 22.10 2 | jammy 22.04 3 | impish 21.10 4 | hirsute 21.04 5 | groovy 20.10 6 | focal 20.04 7 | eoan 19.10 8 | disco 19.04 9 | cosmic 18.10 10 | bionic 18.04 11 | artful 17.10 12 | xenial 16.04 13 | trusty 14.04 14 | artful 17.10 15 | zesty 17.04 16 | yakkety 16.10 17 | wily 15.10 18 | vivid 15.04 19 | utopic 14.10 20 | saucy 13.10 21 | raring 13.04 22 | quantal 12.10 23 | precise 12.04 24 | oneiric 11.10 25 | natty 11.04 26 | maverick 10.10 27 | lucid 10.04 28 | karmic 9.10 29 | jaunty 9.04 30 | intrepid 8.10 31 | hardy 8.04 32 | gutsy 7.10 33 | feisty 7.04 34 | edgy 6.10 35 | dapper 6.04 36 | breezy 5.10 37 | hoary 5.04 38 | warty 4.10 39 | -------------------------------------------------------------------------------- /src/bashlibs-os-detection/version: -------------------------------------------------------------------------------- 1 | 0.0.20 2 | -------------------------------------------------------------------------------- /src/bashlibs-qemu/.bakerc: -------------------------------------------------------------------------------- 1 | PRE_COMPILE_DEPEND="bashlibs-cmake-macros" 2 | -------------------------------------------------------------------------------- /src/bashlibs-qemu/AUTHORS: -------------------------------------------------------------------------------- 1 | Kfir Lavi 2 | -------------------------------------------------------------------------------- /src/bashlibs-qemu/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required (VERSION 2.6) 2 | project (bashlibs-qemu) 3 | 4 | list(APPEND CMAKE_MODULE_PATH 5 | "/usr/share/cmake-macros/Modules") 6 | list(APPEND CMAKE_MODULE_PATH 7 | "/usr/share/bashlibs/cmake-macros/Modules") 8 | 9 | include(BashLibs) 10 | set(CPACK_DEBIAN_PACKAGE_DEPENDS 11 | "bashlibs-utils, 12 | bashlibs-directories (>=0.0.20), 13 | bashlibs-disks (>= 0.0.24), 14 | bashlibs-kernel-modules, 15 | bashlibs-shunit2-enhancements (>=0.0.12), 16 | qemu-utils") 17 | include(PackageCreator) 18 | 19 | -------------------------------------------------------------------------------- /src/bashlibs-qemu/README: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/bashlibs-qemu/TODO: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/bashlibs-qemu/version: -------------------------------------------------------------------------------- 1 | 0.0.27 2 | -------------------------------------------------------------------------------- /src/bashlibs-shunit2-enhancements/.bakerc: -------------------------------------------------------------------------------- 1 | PRE_COMPILE_DEPEND="bashlibs-cmake-macros" 2 | -------------------------------------------------------------------------------- /src/bashlibs-shunit2-enhancements/AUTHORS: -------------------------------------------------------------------------------- 1 | Kfir Lavi 2 | -------------------------------------------------------------------------------- /src/bashlibs-shunit2-enhancements/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required (VERSION 2.6) 2 | project (bashlibs-shunit2-enhancements) 3 | 4 | list(APPEND CMAKE_MODULE_PATH 5 | "/usr/share/cmake-macros/Modules") 6 | list(APPEND CMAKE_MODULE_PATH 7 | "/usr/share/bashlibs/cmake-macros/Modules") 8 | 9 | include(BashLibs) 10 | set(CPACK_DEBIAN_PACKAGE_DEPENDS 11 | "shunit2, 12 | bashlibs-checks, 13 | bashlibs-utils (>= 0.0.6)") 14 | include(PackageCreator) 15 | 16 | -------------------------------------------------------------------------------- /src/bashlibs-shunit2-enhancements/README: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/bashlibs-shunit2-enhancements/TODO: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kfirlavi/bashlibs/f19ed0b62ceb9172491bea1a9706fefaccaa2123/src/bashlibs-shunit2-enhancements/TODO -------------------------------------------------------------------------------- /src/bashlibs-shunit2-enhancements/version: -------------------------------------------------------------------------------- 1 | 0.0.25 2 | -------------------------------------------------------------------------------- /src/bashlibs-skel/.bake_ignore_below: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kfirlavi/bashlibs/f19ed0b62ceb9172491bea1a9706fefaccaa2123/src/bashlibs-skel/.bake_ignore_below -------------------------------------------------------------------------------- /src/bashlibs-skel/.bakerc: -------------------------------------------------------------------------------- 1 | PRE_COMPILE_DEPEND="bashlibs-cmake-macros" 2 | -------------------------------------------------------------------------------- /src/bashlibs-skel/TODO: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kfirlavi/bashlibs/f19ed0b62ceb9172491bea1a9706fefaccaa2123/src/bashlibs-skel/TODO -------------------------------------------------------------------------------- /src/bashlibs-skel/skelaton/AUTHORS: -------------------------------------------------------------------------------- 1 | Kfir Lavi 2 | -------------------------------------------------------------------------------- /src/bashlibs-skel/skelaton/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required (VERSION 2.6) 2 | project (project-name) 3 | 4 | list(APPEND CMAKE_MODULE_PATH 5 | "/usr/share/cmake-macros/Modules") 6 | list(APPEND CMAKE_MODULE_PATH 7 | "/usr/share/bashlibs/cmake-macros/Modules") 8 | 9 | include(BashLibs) 10 | set(CPACK_DEBIAN_PACKAGE_DEPENDS "bashlibs-utils") 11 | include(PackageCreator) 12 | 13 | -------------------------------------------------------------------------------- /src/bashlibs-skel/skelaton/README: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/bashlibs-skel/skelaton/TODO: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/bashlibs-skel/skelaton/lib/project_name.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | #is_empty() { 4 | # local var=$1 5 | # 6 | # [[ -z $var ]] 7 | #} 8 | -------------------------------------------------------------------------------- /src/bashlibs-skel/skelaton/test/test_project_name.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | $(bashlibs --load-base) 3 | include shunit2_enhancements.sh 4 | include project_name.sh 5 | 6 | #test_my_function() { 7 | # return_true "is_empty $var2" 8 | #} 9 | 10 | # load shunit2 11 | source /usr/share/shunit2/shunit2 12 | -------------------------------------------------------------------------------- /src/bashlibs-skel/skelaton/version: -------------------------------------------------------------------------------- 1 | 0.0.1 2 | -------------------------------------------------------------------------------- /src/bashlibs-ssh/.bakerc: -------------------------------------------------------------------------------- 1 | PRE_COMPILE_DEPEND="bashlibs-cmake-macros" 2 | -------------------------------------------------------------------------------- /src/bashlibs-ssh/AUTHORS: -------------------------------------------------------------------------------- 1 | Kfir Lavi 2 | -------------------------------------------------------------------------------- /src/bashlibs-ssh/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required (VERSION 2.6) 2 | project (bashlibs-ssh) 3 | 4 | list(APPEND CMAKE_MODULE_PATH 5 | "/usr/share/cmake-macros/Modules") 6 | list(APPEND CMAKE_MODULE_PATH 7 | "/usr/share/bashlibs/cmake-macros/Modules") 8 | 9 | include(BashLibs) 10 | set(CPACK_DEBIAN_PACKAGE_DEPENDS 11 | "nmap, 12 | sshpass, 13 | bashlibs-verbose (>= 0.0.32), 14 | bashlibs-directories (>= 0.0.18), 15 | bashlibs-utils") 16 | include(PackageCreator) 17 | 18 | -------------------------------------------------------------------------------- /src/bashlibs-ssh/README: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/bashlibs-ssh/TODO: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/bashlibs-ssh/version: -------------------------------------------------------------------------------- 1 | 0.0.32 2 | -------------------------------------------------------------------------------- /src/bashlibs-string/.bakerc: -------------------------------------------------------------------------------- 1 | PRE_COMPILE_DEPEND="bashlibs-cmake-macros" 2 | -------------------------------------------------------------------------------- /src/bashlibs-string/AUTHORS: -------------------------------------------------------------------------------- 1 | Kfir Lavi 2 | -------------------------------------------------------------------------------- /src/bashlibs-string/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required (VERSION 2.6) 2 | project (bashlibs-string) 3 | 4 | list(APPEND CMAKE_MODULE_PATH 5 | "/usr/share/cmake-macros/Modules") 6 | list(APPEND CMAKE_MODULE_PATH 7 | "/usr/share/bashlibs/cmake-macros/Modules") 8 | 9 | include(BashLibs) 10 | set(CPACK_DEBIAN_PACKAGE_DEPENDS 11 | "bashlibs-utils, 12 | bashlibs-colors, 13 | colorized-logs | kbtin") 14 | include(PackageCreator) 15 | 16 | -------------------------------------------------------------------------------- /src/bashlibs-string/README: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/bashlibs-string/TODO: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/bashlibs-string/version: -------------------------------------------------------------------------------- 1 | 0.0.22 2 | -------------------------------------------------------------------------------- /src/bashlibs-sysfs/.bakerc: -------------------------------------------------------------------------------- 1 | PRE_COMPILE_DEPEND="bashlibs-cmake-macros" 2 | -------------------------------------------------------------------------------- /src/bashlibs-sysfs/AUTHORS: -------------------------------------------------------------------------------- 1 | Kfir Lavi 2 | -------------------------------------------------------------------------------- /src/bashlibs-sysfs/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required (VERSION 2.6) 2 | project (bashlibs-sysfs) 3 | 4 | list(APPEND CMAKE_MODULE_PATH 5 | "/usr/share/cmake-macros/Modules") 6 | list(APPEND CMAKE_MODULE_PATH 7 | "/usr/share/bashlibs/cmake-macros/Modules") 8 | 9 | include(BashLibs) 10 | set(CPACK_DEBIAN_PACKAGE_DEPENDS 11 | "bashlibs-utils, 12 | bashlibs-directories, 13 | bashlibs-verbose, 14 | bashlibs-config, 15 | bashlibs-checks") 16 | include(PackageCreator) 17 | 18 | -------------------------------------------------------------------------------- /src/bashlibs-sysfs/README: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/bashlibs-sysfs/TODO: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/bashlibs-sysfs/lib/sysfs.sh: -------------------------------------------------------------------------------- 1 | include checks.sh 2 | include verbose.sh 3 | 4 | sysfs_root_path() { 5 | local prefix=$1 6 | 7 | echo $prefix/proc/sys 8 | } 9 | 10 | sysfs_set_value() { 11 | local sysfs_path=$1; shift 12 | local value=$@ 13 | 14 | vdebug "setting $(color white)$sysfs_path$(no_color) to value $(color green)$value$(no_color)" 15 | 16 | file_exist $sysfs_path \ 17 | && echo $value > $sysfs_path \ 18 | || verror "$sysfs_path does not exist" 19 | } 20 | 21 | sysfs_option_on() { 22 | local sysfs_path=$1 23 | 24 | sysfs_set_value $sysfs_path 1 25 | } 26 | 27 | sysfs_option_off() { 28 | local sysfs_path=$1 29 | 30 | sysfs_set_value $sysfs_path 0 31 | } 32 | -------------------------------------------------------------------------------- /src/bashlibs-sysfs/test/test_sysfs.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | $(bashlibs --load-base) 3 | include shunit2_enhancements.sh 4 | include directories.sh 5 | include config.sh 6 | include sysfs.sh 7 | 8 | setUp() { 9 | create_workdir 10 | var_to_function tempfile $(workdir)/proc/sys/test_file 11 | mkdir -p $(dirname $(tempfile)) 12 | echo -n > $(tempfile) 13 | } 14 | 15 | tearDown() { 16 | remove_workdir 17 | true 18 | } 19 | 20 | test_sysfs_root_path() { 21 | returns "/proc/sys" "sysfs_root_path" 22 | returns "/tmp/proc/sys" "sysfs_root_path /tmp" 23 | } 24 | 25 | test_sysfs_set_value() { 26 | sysfs_set_value $(tempfile) abc 27 | returns "abc" "cat $(tempfile)" 28 | 29 | sysfs_set_value $(tempfile) abc efg 123 30 | returns "abc efg 123" "cat $(tempfile)" 31 | 32 | return_true "sysfs_set_value /none/exist/path abc | grep -q Error:" 33 | } 34 | 35 | test_sysfs_option_on() { 36 | sysfs_option_on $(tempfile) 37 | returns "1" "cat $(tempfile)" 38 | } 39 | 40 | test_sysfs_option_off() { 41 | sysfs_option_off $(tempfile) 42 | returns "0" "cat $(tempfile)" 43 | } 44 | 45 | # load shunit2 46 | source /usr/share/shunit2/shunit2 47 | -------------------------------------------------------------------------------- /src/bashlibs-sysfs/version: -------------------------------------------------------------------------------- 1 | 0.0.13 2 | -------------------------------------------------------------------------------- /src/bashlibs-templates/.bakerc: -------------------------------------------------------------------------------- 1 | PRE_COMPILE_DEPEND="bashlibs-cmake-macros" 2 | -------------------------------------------------------------------------------- /src/bashlibs-templates/AUTHORS: -------------------------------------------------------------------------------- 1 | Kfir Lavi 2 | -------------------------------------------------------------------------------- /src/bashlibs-templates/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required (VERSION 2.6) 2 | project (bashlibs-templates) 3 | 4 | list(APPEND CMAKE_MODULE_PATH 5 | "/usr/share/cmake-macros/Modules") 6 | list(APPEND CMAKE_MODULE_PATH 7 | "/usr/share/bashlibs/cmake-macros/Modules") 8 | 9 | include(BashLibs) 10 | set(CPACK_DEBIAN_PACKAGE_DEPENDS 11 | "bashlibs-utils (>= 0.0.6), 12 | bashlibs-colors (>= 0.0.15), 13 | bashlibs-directories, 14 | bashlibs-shunit2-enhancements (>= 0.0.2)") 15 | include(PackageCreator) 16 | 17 | -------------------------------------------------------------------------------- /src/bashlibs-templates/README: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kfirlavi/bashlibs/f19ed0b62ceb9172491bea1a9706fefaccaa2123/src/bashlibs-templates/README -------------------------------------------------------------------------------- /src/bashlibs-templates/TODO: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kfirlavi/bashlibs/f19ed0b62ceb9172491bea1a9706fefaccaa2123/src/bashlibs-templates/TODO -------------------------------------------------------------------------------- /src/bashlibs-templates/lib/templates.sh: -------------------------------------------------------------------------------- 1 | include verbose.sh 2 | 3 | variable_is_in_template() { 4 | local template=$1 5 | local variable=$2 6 | 7 | grep -q "@$variable%" $template 8 | } 9 | 10 | exit_if_variable_is_not_in_template() { 11 | local template=$1 12 | local variable=$2 13 | 14 | variable_is_in_template $template $variable \ 15 | || eexit "variable: '$variable' is not found in template: $template" 16 | } 17 | 18 | modify_template() { 19 | local template=$1; shift 20 | local variable=$1; shift 21 | local replace_str=$@ 22 | 23 | exit_if_variable_is_not_in_template \ 24 | $template \ 25 | $variable 26 | 27 | vdebug "$FUNCNAME $template '$variable' -> '$replace_str'" 28 | 29 | sed \ 30 | -e "s|@$variable%|$replace_str|g" \ 31 | -i $template 32 | } 33 | -------------------------------------------------------------------------------- /src/bashlibs-templates/test/files/simple.template: -------------------------------------------------------------------------------- 1 | ID=@id% 2 | NAME=@NAME% 3 | -------------------------------------------------------------------------------- /src/bashlibs-templates/test/test_templates.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | $(bashlibs --load-base) 3 | include shunit2_enhancements.sh 4 | include templates.sh 5 | include directories.sh 6 | 7 | oneTimeSetUp() { 8 | create_workdir 9 | } 10 | 11 | oneTimeTearDown() { 12 | remove_workdir 13 | } 14 | 15 | templates_dir() { 16 | echo __BASHLIBS_PROJECT_TESTS_DIR__/files 17 | } 18 | 19 | simple_template() { 20 | echo $(workdir)/simple 21 | } 22 | 23 | setUp() { 24 | cp \ 25 | $(templates_dir)/simple.template \ 26 | $(simple_template) 27 | } 28 | 29 | test_variable_is_in_template() { 30 | local t=$(simple_template) 31 | local f=variable_is_in_template 32 | 33 | return_true "$f $t id" 34 | return_false "$f $t ID" 35 | return_true "$f $t NAME" 36 | return_false "$f $t name" 37 | } 38 | 39 | test_modify_template() { 40 | modify_template $(simple_template) id 100 41 | modify_template $(simple_template) NAME my_name 42 | 43 | return_true "grep -q ID=100 $(simple_template)" 44 | return_true "grep -q NAME=my_name $(simple_template)" 45 | } 46 | 47 | # load shunit2 48 | source /usr/share/shunit2/shunit2 49 | -------------------------------------------------------------------------------- /src/bashlibs-templates/version: -------------------------------------------------------------------------------- 1 | 0.0.1 2 | -------------------------------------------------------------------------------- /src/bashlibs-tests/.bakerc: -------------------------------------------------------------------------------- 1 | PRE_COMPILE_DEPEND="bashlibs-cmake-macros" 2 | -------------------------------------------------------------------------------- /src/bashlibs-tests/AUTHORS: -------------------------------------------------------------------------------- 1 | Kfir Lavi 2 | -------------------------------------------------------------------------------- /src/bashlibs-tests/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required (VERSION 2.6) 2 | project (bashlibs-tests) 3 | 4 | list(APPEND CMAKE_MODULE_PATH 5 | "/usr/share/cmake-macros/Modules") 6 | list(APPEND CMAKE_MODULE_PATH 7 | "/usr/share/bashlibs/cmake-macros/Modules") 8 | 9 | include(BashLibs) 10 | set(CPACK_DEBIAN_PACKAGE_DEPENDS 11 | "bashlibs-checks, 12 | bashlibs-shunit2-enhancements, 13 | bashlibs-directories, 14 | bashlibs-utils (>= 0.0.6)") 15 | include(PackageCreator) 16 | 17 | -------------------------------------------------------------------------------- /src/bashlibs-tests/README: -------------------------------------------------------------------------------- 1 | this is the upgrade to your program you need to do in order to 2 | add test support 3 | 4 | 5 | - while getopts "vhxci" OPTION 6 | + while getopts "vhtxci" OPTION 7 | do 8 | case $OPTION in 9 | v) 10 | @@ -74,8 +74,8 @@ cmdline() { 11 | set -x 12 | ;; 13 | + t) 14 | + var_to_true_function should_run_tests 15 | + var_to_function tests_dir path_to_test_directory 16 | ;; 17 | c) 18 | var_to_true_function should_archive_classified 19 | @@ -93,6 +93,7 @@ func() { 20 | 21 | main() { 22 | cmdline $(args) 23 | + run_tests_if_needed 24 | 25 | 26 | 27 | 28 | some pre test and post test functions can be overriden 29 | to allow executing code between running each test file 30 | look at __PROJECT_LIB_DIR__/test.sh 31 | this are the functions that can be overriden: 32 | pre_run_tests 33 | post_run_tests 34 | pre_run_test 35 | post_run_test 36 | -------------------------------------------------------------------------------- /src/bashlibs-tests/TODO: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kfirlavi/bashlibs/f19ed0b62ceb9172491bea1a9706fefaccaa2123/src/bashlibs-tests/TODO -------------------------------------------------------------------------------- /src/bashlibs-tests/version: -------------------------------------------------------------------------------- 1 | 0.0.1 2 | -------------------------------------------------------------------------------- /src/bashlibs-usage/.bakerc: -------------------------------------------------------------------------------- 1 | PRE_COMPILE_DEPEND="bashlibs-cmake-macros" 2 | -------------------------------------------------------------------------------- /src/bashlibs-usage/AUTHORS: -------------------------------------------------------------------------------- 1 | Kfir Lavi 2 | -------------------------------------------------------------------------------- /src/bashlibs-usage/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required (VERSION 2.6) 2 | project (bashlibs-usage) 3 | 4 | list(APPEND CMAKE_MODULE_PATH 5 | "/usr/share/cmake-macros/Modules") 6 | list(APPEND CMAKE_MODULE_PATH 7 | "/usr/share/bashlibs/cmake-macros/Modules") 8 | 9 | include(BashLibs) 10 | set(CPACK_DEBIAN_PACKAGE_DEPENDS 11 | "bashlibs-utils (>= 0.0.6), 12 | bashlibs-colors") 13 | include(PackageCreator) 14 | 15 | -------------------------------------------------------------------------------- /src/bashlibs-usage/README: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/bashlibs-usage/TODO: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/bashlibs-usage/test/test_usage.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | $(bashlibs --load-base) 3 | include shunit2_enhancements.sh 4 | include usage.sh 5 | 6 | test_indentation() { 7 | returns 's e' "echo 's$(indentation 1)e'" 8 | returns 's e' "echo 's$(indentation 2)e'" 9 | returns 's e' "echo 's$(indentation 4)e'" 10 | returns 's e' "echo 's$(indentation 10)e'" 11 | returns 's e' "echo 's$(indentation -10)e'" 12 | } 13 | 14 | test_item_gap() { 15 | returns 16 "item_gap '--help'" 16 | returns 10 "item_gap '--print-data'" 17 | } 18 | 19 | test_item_column_indentation_gap() { 20 | returns 22 "item_column_indentation_gap" 21 | 22 | set_column_indentation_gap 50 23 | returns 50 "item_column_indentation_gap" 24 | 25 | set_column_indentation_gap 26 26 | } 27 | 28 | # load shunit2 29 | source /usr/share/shunit2/shunit2 30 | -------------------------------------------------------------------------------- /src/bashlibs-usage/version: -------------------------------------------------------------------------------- 1 | 0.0.22 2 | -------------------------------------------------------------------------------- /src/bashlibs-user/.bakerc: -------------------------------------------------------------------------------- 1 | PRE_COMPILE_DEPEND="bashlibs-cmake-macros" 2 | -------------------------------------------------------------------------------- /src/bashlibs-user/AUTHORS: -------------------------------------------------------------------------------- 1 | Kfir Lavi 2 | -------------------------------------------------------------------------------- /src/bashlibs-user/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required (VERSION 2.6) 2 | project (bashlibs-user) 3 | 4 | list(APPEND CMAKE_MODULE_PATH 5 | "/usr/share/cmake-macros/Modules") 6 | list(APPEND CMAKE_MODULE_PATH 7 | "/usr/share/bashlibs/cmake-macros/Modules") 8 | 9 | include(BashLibs) 10 | set(CPACK_DEBIAN_PACKAGE_DEPENDS 11 | "bashlibs-utils") 12 | include(PackageCreator) 13 | 14 | -------------------------------------------------------------------------------- /src/bashlibs-user/README: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/bashlibs-user/TODO: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/bashlibs-user/lib/user.sh: -------------------------------------------------------------------------------- 1 | include verbose.sh 2 | 3 | current_user() { 4 | whoami 5 | } 6 | 7 | runnin_as_root() { 8 | [[ $(current_user) == root ]] 9 | } 10 | 11 | must_run_as_root() { 12 | runnin_as_root \ 13 | || eexit "'$(progname)' must be run as root" 14 | } 15 | 16 | must_run_as_user() { 17 | runnin_as_root \ 18 | && eexit "'$(progname)' must be run as user" 19 | } 20 | -------------------------------------------------------------------------------- /src/bashlibs-user/test/test_user.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | $(bashlibs --load-base) 3 | include shunit2_enhancements.sh 4 | include user.sh 5 | 6 | test_runnin_as_root() { 7 | current_user() { echo user1; } 8 | return_false "runnin_as_root" 9 | 10 | current_user() { echo root; } 11 | return_true "runnin_as_root" 12 | } 13 | 14 | # load shunit2 15 | source /usr/share/shunit2/shunit2 16 | -------------------------------------------------------------------------------- /src/bashlibs-user/version: -------------------------------------------------------------------------------- 1 | 0.0.9 2 | -------------------------------------------------------------------------------- /src/bashlibs-utils/.bakerc: -------------------------------------------------------------------------------- 1 | PRE_COMPILE_DEPEND="bashlibs-cmake-macros" 2 | -------------------------------------------------------------------------------- /src/bashlibs-utils/AUTHORS: -------------------------------------------------------------------------------- 1 | Kfir Lavi 2 | -------------------------------------------------------------------------------- /src/bashlibs-utils/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required (VERSION 2.6) 2 | project (bashlibs-utils) 3 | 4 | list(APPEND CMAKE_MODULE_PATH 5 | "/usr/share/cmake-macros/Modules") 6 | list(APPEND CMAKE_MODULE_PATH 7 | "/usr/share/bashlibs/cmake-macros/Modules") 8 | 9 | include(BashLibs) 10 | set(CPACK_DEBIAN_PACKAGE_DEPENDS 11 | "bashlibs-shunit2-enhancements (>= 0.0.2), 12 | bashlibs-code-clarity (>= 0.0.2), 13 | bashlibs-verbose (>= 0.0.5), 14 | bashlibs-usage (>= 0.0.2), 15 | bashlibs-base (>= 0.0.7)") 16 | include(PackageCreator) 17 | -------------------------------------------------------------------------------- /src/bashlibs-utils/README: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/bashlibs-utils/TODO: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kfirlavi/bashlibs/f19ed0b62ceb9172491bea1a9706fefaccaa2123/src/bashlibs-utils/TODO -------------------------------------------------------------------------------- /src/bashlibs-utils/version: -------------------------------------------------------------------------------- 1 | 0.0.22 2 | -------------------------------------------------------------------------------- /src/bashlibs-verbose/.bakerc: -------------------------------------------------------------------------------- 1 | PRE_COMPILE_DEPEND="bashlibs-cmake-macros" 2 | -------------------------------------------------------------------------------- /src/bashlibs-verbose/AUTHORS: -------------------------------------------------------------------------------- 1 | Kfir Lavi 2 | -------------------------------------------------------------------------------- /src/bashlibs-verbose/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required (VERSION 2.6) 2 | project (bashlibs-verbose) 3 | 4 | list(APPEND CMAKE_MODULE_PATH 5 | "/usr/share/cmake-macros/Modules") 6 | list(APPEND CMAKE_MODULE_PATH 7 | "/usr/share/bashlibs/cmake-macros/Modules") 8 | 9 | include(BashLibs) 10 | set(CPACK_DEBIAN_PACKAGE_DEPENDS 11 | "bashlibs-utils (>= 0.0.6), 12 | bashlibs-colors (>= 0.0.15), 13 | bashlibs-shunit2-enhancements (>= 0.0.2)") 14 | include(PackageCreator) 15 | 16 | -------------------------------------------------------------------------------- /src/bashlibs-verbose/README: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/bashlibs-verbose/TODO: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kfirlavi/bashlibs/f19ed0b62ceb9172491bea1a9706fefaccaa2123/src/bashlibs-verbose/TODO -------------------------------------------------------------------------------- /src/bashlibs-verbose/test/test_nice_header.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | $(bashlibs --load-base) 3 | include shunit2_enhancements.sh 4 | include nice_header.sh 5 | 6 | test_print_ruler() { 7 | returns "****" \ 8 | "print_ruler '*' 4" 9 | 10 | returns "++++++" \ 11 | "print_ruler '+' 6" 12 | } 13 | 14 | test_print_gap() { 15 | returns "start_gap stop_gap" \ 16 | "echo 'start_gap$(print_gap 1)stop_gap'" 17 | 18 | returns "start_gap stop_gap" \ 19 | "echo 'start_gap$(print_gap 10)stop_gap'" 20 | } 21 | 22 | test_print_header_midline() { 23 | returns "* 123456789 *" \ 24 | "strip_colors \"$(print_header_midline 123456789 yellow '*' blue 20)\"" 25 | 26 | returns "* 1234567890 *" \ 27 | "strip_colors \"$(print_header_midline 1234567890 yellow '*' blue 14)\"" 28 | 29 | returns "* 1234567890 *" \ 30 | "strip_colors \"$(print_header_midline 1234567890 yellow '*' blue 15)\"" 31 | 32 | returns "* 1234567890 *" \ 33 | "strip_colors \"$(print_header_midline 1234567890 yellow '*' blue 16)\"" 34 | 35 | returns "* 1234567890 *" \ 36 | "strip_colors \"$(print_header_midline 1234567890 yellow '*' blue 17)\"" 37 | } 38 | 39 | # load shunit2 40 | source /usr/share/shunit2/shunit2 41 | -------------------------------------------------------------------------------- /src/bashlibs-verbose/version: -------------------------------------------------------------------------------- 1 | 0.0.34 2 | -------------------------------------------------------------------------------- /src/bashlibs-versions/.bakerc: -------------------------------------------------------------------------------- 1 | PRE_COMPILE_DEPEND="bashlibs-cmake-macros" 2 | -------------------------------------------------------------------------------- /src/bashlibs-versions/AUTHORS: -------------------------------------------------------------------------------- 1 | Kfir Lavi 2 | -------------------------------------------------------------------------------- /src/bashlibs-versions/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required (VERSION 2.6) 2 | project (bashlibs-versions) 3 | 4 | list(APPEND CMAKE_MODULE_PATH 5 | "/usr/share/cmake-macros/Modules") 6 | list(APPEND CMAKE_MODULE_PATH 7 | "/usr/share/bashlibs/cmake-macros/Modules") 8 | 9 | include(BashLibs) 10 | set(CPACK_DEBIAN_PACKAGE_DEPENDS 11 | "bashlibs-utils, 12 | bashlibs-string, 13 | sed, 14 | bashlibs-shunit2-enhancements (>=0.0.15)") 15 | include(PackageCreator) 16 | 17 | -------------------------------------------------------------------------------- /src/bashlibs-versions/README: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/bashlibs-versions/TODO: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/bashlibs-versions/version: -------------------------------------------------------------------------------- 1 | 0.0.9 2 | -------------------------------------------------------------------------------- /src/cmake-macros/AUTHORS: -------------------------------------------------------------------------------- 1 | Kfir Lavi 2 | -------------------------------------------------------------------------------- /src/cmake-macros/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required (VERSION 2.6) 2 | project (cmake-macros) 3 | 4 | 5 | list(APPEND CMAKE_MODULE_PATH 6 | "${CMAKE_SOURCE_DIR}/Modules") 7 | 8 | include(SetAppVersion) 9 | set(CPACK_PACKAGING_INSTALL_PREFIX "/") 10 | set(CPACK_DEBIAN_PACKAGE_DEPENDS "cmake (>= 2.6)") 11 | include(PackageCreator) 12 | include(InstallDocs) 13 | 14 | message(STATUS "App version: ${APPLICATION_VERSION}") 15 | 16 | install( 17 | DIRECTORY "Modules" 18 | DESTINATION "usr/share/${PROJECT_NAME}" 19 | ) 20 | -------------------------------------------------------------------------------- /src/cmake-macros/Modules/CPackSimple.cmake: -------------------------------------------------------------------------------- 1 | set(CPACK_PACKAGING_INSTALL_PREFIX "/") 2 | 3 | set(CPACK_DEBIAN_PACKAGE_CONTROL_EXTRA 4 | "${CMAKE_CURRENT_SOURCE_DIR}/CMake/debian/preinst;" 5 | "${CMAKE_CURRENT_SOURCE_DIR}/CMake/debian/prerm;" 6 | "${CMAKE_CURRENT_SOURCE_DIR}/CMake/debian/postinst;" 7 | "${CMAKE_CURRENT_SOURCE_DIR}/CMake/debian/postrm;") 8 | -------------------------------------------------------------------------------- /src/cmake-macros/Modules/InstallDocs.cmake: -------------------------------------------------------------------------------- 1 | if(NOT DEFINED DOCDIR) 2 | set(DOCDIR "usr/share/doc/${CMAKE_PROJECT_NAME}-${APPLICATION_VERSION}") 3 | set(DOC_FILES_TO_INSTALL README AUTHORS License ChangeLog TODO) 4 | set(DOC_DIRS_TO_INSTALL examples) 5 | 6 | function(INSTALL_DOC_FILE_IF_EXISTS ${filename}) 7 | if(EXISTS ${CMAKE_SOURCE_DIR}/${filename}) 8 | message(STATUS "Found document: ${filename}") 9 | INSTALL(FILES ${filename} DESTINATION ${DOCDIR}) 10 | else() 11 | message(STATUS "Document Not found: ${filename}") 12 | endif() 13 | endfunction(INSTALL_DOC_FILE_IF_EXISTS) 14 | 15 | function(INSTALL_DOC_DIR_IF_EXISTS ${dirname}) 16 | if(EXISTS ${CMAKE_SOURCE_DIR}/${dirname}) 17 | message(STATUS "Found documentation dir: ${dirname}") 18 | INSTALL(DIRECTORY ${dirname} DESTINATION ${DOCDIR}) 19 | else() 20 | message(STATUS "Document directory Not found: ${dirname}") 21 | endif() 22 | endfunction(INSTALL_DOC_DIR_IF_EXISTS) 23 | 24 | function(INSTALL_DOC_FILES) 25 | foreach(filename ${DOC_FILES_TO_INSTALL}) 26 | INSTALL_DOC_FILE_IF_EXISTS(${filename}) 27 | endforeach(filename) 28 | endfunction(INSTALL_DOC_FILES) 29 | 30 | function(INSTALL_DOC_DIRS) 31 | foreach(dirname ${DOC_DIRS_TO_INSTALL}) 32 | INSTALL_DOC_DIR_IF_EXISTS(${dirname}) 33 | endforeach(dirname) 34 | endfunction(INSTALL_DOC_DIRS) 35 | 36 | message(STATUS "Documentation directory: ${DOCDIR}") 37 | INSTALL_DOC_FILES() 38 | INSTALL_DOC_DIRS() 39 | endif(NOT DEFINED DOCDIR) 40 | -------------------------------------------------------------------------------- /src/cmake-macros/Modules/OSDetection.cmake: -------------------------------------------------------------------------------- 1 | # This module will define the compilation variable 2 | # OS_LINUX 3 | 4 | IF(${CMAKE_SYSTEM_NAME} MATCHES "Linux") 5 | message(STATUS "Using Linux specific code") 6 | SET(OS "Linux") 7 | add_definitions(-DOS_LINUX) 8 | add_definitions(-DLINUX) 9 | add_definitions(-DLinux) 10 | ENDIF(${CMAKE_SYSTEM_NAME} MATCHES "Linux") 11 | 12 | execute_process(COMMAND "bashlibs" "--include os_detection.sh --run is_ubuntu" 13 | RESULT_VARIABLE LINUX_UBUNTU) 14 | 15 | execute_process(COMMAND "bashlibs" "--include os_detection.sh --run is_gentoo" 16 | RESULT_VARIABLE LINUX_GENTOO) 17 | 18 | if(LINUX_UBUNTU MATCHES 0) 19 | set(LINUX_DISTRO ubuntu) 20 | add_definitions(-DLINUX_UBUNTU) 21 | endif(LINUX_UBUNTU MATCHES 0) 22 | 23 | if(LINUX_GENTOO MATCHES 0) 24 | set(LINUX_DISTRO gentoo) 25 | add_definitions(-DLINUX_GENTOO) 26 | endif(LINUX_GENTOO MATCHES 0) 27 | 28 | if(LINUX_DISTRO) 29 | message(STATUS "Linux distro is ${LINUX_DISTRO}") 30 | message(STATUS "Defining variable: LINUX_DISTRO=${LINUX_DISTRO}") 31 | endif(LINUX_DISTRO) 32 | -------------------------------------------------------------------------------- /src/cmake-macros/Modules/PackageCreator.cmake: -------------------------------------------------------------------------------- 1 | set(CPACK_PACKAGE_VERSION_MAJOR ${APP_VER_MAJOR}) 2 | set(CPACK_PACKAGE_VERSION_MINOR ${APP_VER_MINOR}) 3 | set(CPACK_PACKAGE_VERSION_PATCH ${APP_VER_PATCH}) 4 | set(CPACK_SOURCE_GENERATOR TBZ2) 5 | 6 | # for ubuntu 7 | set(CPACK_GENERATOR DEB) 8 | SET(CPACK_DEBIAN_PACKAGE_MAINTAINER "Kfir Lavi") #required 9 | 10 | include(CPack) 11 | -------------------------------------------------------------------------------- /src/cmake-macros/Modules/SetAppVersion.cmake: -------------------------------------------------------------------------------- 1 | set(version_file ${CMAKE_SOURCE_DIR}/version) 2 | 3 | macro(SET_APP_VERSION) 4 | 5 | if(NOT EXISTS ${version_file}) 6 | message( 7 | FATAL_ERROR 8 | "version file not found. You must supply a version file containing version like this: 0.0.4 for example.") 9 | endif() 10 | 11 | file(READ ${version_file} _ver) 12 | 13 | string(REGEX MATCH 14 | "^([0-9]+)\\.([0-9]+)\\.([0-9]+)" 15 | _output_match 16 | ${_ver}) 17 | 18 | set(APP_VER_MAJOR ${CMAKE_MATCH_1}) 19 | set(APP_VER_MINOR ${CMAKE_MATCH_2}) 20 | set(APP_VER_PATCH ${CMAKE_MATCH_3}) 21 | 22 | set(APPLICATION_VERSION 23 | "${APP_VER_MAJOR}.${APP_VER_MINOR}.${APP_VER_PATCH}") 24 | 25 | set(LIBRARY_VERSION 26 | "${APPLICATION_VERSION}") 27 | 28 | set(LIBRARY_SOVERSION 29 | ${APP_VER_MAJOR}) 30 | 31 | endmacro(SET_APP_VERSION) 32 | 33 | if(NOT DEFINED APPLICATION_VERSION) 34 | SET_APP_VERSION() 35 | message(STATUS "App version: ${APPLICATION_VERSION}") 36 | message(STATUS "Library version: ${LIBRARY_VERSION}") 37 | message(STATUS "Library soversion: ${LIBRARY_SOVERSION}") 38 | endif(NOT DEFINED APPLICATION_VERSION) 39 | -------------------------------------------------------------------------------- /src/cmake-macros/README: -------------------------------------------------------------------------------- 1 | This is a generic package that adds some modules support to make 2 | CMakeLists.txt file more readable. 3 | 4 | You must write the app version to the file 'version' like so: 1.4.2 5 | 6 | To allow package creation like DEB file for debian or ubuntu system: 7 | set(CPACK_PACKAGING_INSTALL_PREFIX "/") 8 | set(CPACK_DEBIAN_PACKAGE_DEPENDS "cmake (>= 2.6)") 9 | include(PackageCreator) 10 | 11 | To install docs to doc dir just include this line: 12 | include(InstallDocs) 13 | It will install directory example if exist and files AUTHORS ChangeLog README 14 | to /usr/share/doc/my_package-0.0.1/... 15 | 16 | include(OSDetection) 17 | for linux system, will add -DOS_LINUX -DLINUX -DLinux as compilation flags. 18 | -------------------------------------------------------------------------------- /src/cmake-macros/version: -------------------------------------------------------------------------------- 1 | 0.0.15 2 | --------------------------------------------------------------------------------