Skip to content

Commit

Permalink
new packages to gpkg
Browse files Browse the repository at this point in the history
gpkg/bash-completion
gpkg/pam
gpkg/util-linux
  • Loading branch information
Maxython committed Sep 11, 2023
1 parent 4e0cdd2 commit e2ec563
Show file tree
Hide file tree
Showing 14 changed files with 1,030 additions and 0 deletions.
12 changes: 12 additions & 0 deletions gpkg/bash-completion/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
TERMUX_PKG_HOMEPAGE=https://github.com/scop/bash-completion
TERMUX_PKG_DESCRIPTION="Programmable completion for the bash shell"
TERMUX_PKG_LICENSE="GPL-2.0"
TERMUX_PKG_MAINTAINER="@termux-pacman"
TERMUX_PKG_VERSION=2.11
TERMUX_PKG_SRCURL=https://github.com/scop/bash-completion/releases/download/${TERMUX_PKG_VERSION}/bash-completion-${TERMUX_PKG_VERSION}.tar.xz
TERMUX_PKG_SHA256=73a8894bad94dee83ab468fa09f628daffd567e8bef1a24277f1e9a0daf911ac
TERMUX_PKG_DEPENDS="bash-glibc"
TERMUX_PKG_PLATFORM_INDEPENDENT=true
TERMUX_PKG_RM_AFTER_INSTALL="
share/bash-completion/completions/makepkg
"
13 changes: 13 additions & 0 deletions gpkg/bash-completion/completions-man.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff -uNr bash-completion-2.9/completions/man bash-completion-2.9.mod/completions/man
--- bash-completion-2.9/completions/man 2019-04-27 11:54:49.000000000 +0300
+++ bash-completion-2.9.mod/completions/man 2019-05-02 15:36:06.454990217 +0300
@@ -51,8 +51,7 @@
return
fi

- local manpath=$(manpath 2>/dev/null || command man -w 2>/dev/null)
- [[ -z $manpath ]] && manpath="/usr/share/man:/usr/local/share/man"
+ local manpath="@TERMUX_PREFIX@/share/man"

# determine manual section to search
local sect
14 changes: 14 additions & 0 deletions gpkg/libpam/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
TERMUX_PKG_HOMEPAGE=http://linux-pam.org
TERMUX_PKG_DESCRIPTION="PAM (Pluggable Authentication Modules) library"
TERMUX_PKG_LICENSE="GPL-2.0"
TERMUX_PKG_MAINTAINER="@termux-pacman"
TERMUX_PKG_VERSION=1.5.3
TERMUX_PKG_SRCURL=https://github.com/linux-pam/linux-pam/releases/download/v$TERMUX_PKG_VERSION/Linux-PAM-$TERMUX_PKG_VERSION.tar.xz
TERMUX_PKG_SHA256=7ac4b50feee004a9fa88f1dfd2d2fa738a82896763050cd773b3c54b0a818283
TERMUX_PKG_DEPENDS="libxcrypt-glibc, gcc-glibc-libs-dev"
TERMUX_PKG_RM_AFTER_INSTALL="glibc/bin"
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
--includedir=$TERMUX_PREFIX/include/security
--enable-logind
--disable-db
"
37 changes: 37 additions & 0 deletions gpkg/util-linux/blk-utils.subpackage.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
TERMUX_SUBPKG_DESCRIPTION="Utilities for handling block device attributes"
TERMUX_SUBPKG_DEPENDS="libblkid-glibc, libmount-glibc, libsmartcols-glibc, libuuid-glibc"
TERMUX_SUBPKG_BREAKS="util-linux-glibc (<< 2.38.1-1)"
TERMUX_SUBPKG_REPLACES="util-linux-glibc (<< 2.38.1-1)"
TERMUX_SUBPKG_DEPEND_ON_PARENT="no"
TERMUX_SUBPKG_INCLUDE="
glibc/bin/blkdiscard
glibc/bin/blkid
glibc/bin/blkzone
glibc/bin/findfs
glibc/bin/fsck
glibc/bin/lsblk
glibc/bin/mkswap
glibc/bin/partx
glibc/bin/swaplabel
glibc/bin/wipefs
glibc/share/bash-completion/completions/blkdiscard
glibc/share/bash-completion/completions/blkid
glibc/share/bash-completion/completions/blkzone
glibc/share/bash-completion/completions/findfs
glibc/share/bash-completion/completions/fsck
glibc/share/bash-completion/completions/lsblk
glibc/share/bash-completion/completions/mkswap
glibc/share/bash-completion/completions/partx
glibc/share/bash-completion/completions/swaplabel
glibc/share/bash-completion/completions/wipefs
glibc/share/man/man8/blkdiscard.8.gz
glibc/share/man/man8/blkid.8.gz
glibc/share/man/man8/blkzone.8.gz
glibc/share/man/man8/findfs.8.gz
glibc/share/man/man8/fsck.8.gz
glibc/share/man/man8/lsblk.8.gz
glibc/share/man/man8/mkswap.8.gz
glibc/share/man/man8/partx.8.gz
glibc/share/man/man8/swaplabel.8.gz
glibc/share/man/man8/wipefs.8.gz
"
40 changes: 40 additions & 0 deletions gpkg/util-linux/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
TERMUX_PKG_HOMEPAGE=https://en.wikipedia.org/wiki/Util-linux
TERMUX_PKG_DESCRIPTION="Miscellaneous system utilities"
TERMUX_PKG_LICENSE="GPL-3.0, GPL-2.0, LGPL-2.1, BSD 3-Clause, BSD, ISC"
TERMUX_PKG_LICENSE_FILE="\
Documentation/licenses/COPYING.GPL-3.0-or-later
Documentation/licenses/COPYING.GPL-2.0-or-later
Documentation/licenses/COPYING.LGPL-2.1-or-later
Documentation/licenses/COPYING.BSD-3-Clause
Documentation/licenses/COPYING.BSD-4-Clause-UC
Documentation/licenses/COPYING.ISC"
TERMUX_PKG_MAINTAINER="@termux-pacman"
TERMUX_PKG_VERSION=2.39.2
TERMUX_PKG_SRCURL=https://www.kernel.org/pub/linux/utils/util-linux/v${TERMUX_PKG_VERSION:0:4}/util-linux-${TERMUX_PKG_VERSION}.tar.xz
TERMUX_PKG_SHA256=87abdfaa8e490f8be6dde976f7c80b9b5ff9f301e1b67e3899e1f05a59a1531f
TERMUX_PKG_DEPENDS="libcap-ng-glibc, ncurses-glibc, zlib-glibc, libpam-glibc, libsmartcols-glibc"
TERMUX_PKG_ESSENTIAL=true
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
-Dlibuser=disabled
-Dncurses=disabled
-Dncursesw=enabled
-Deconf=disabled
-Dbuild-chfn-chsh=enabled
-Dbuild-line=disabled
-Dbuild-mesg=enabled
-Dbuild-newgrp=enabled
-Dbuild-vipw=enabled
-Dbuild-write=enabled
-Dbuild-lslogins=disabled
-Dbuild-login=disabled
-Dbuild-nologin=disabled
-Dbuild-sulogin=disabled
-Dbuild-su=disabled
-Dbuild-lsmem=disabled
-Dbuild-chmem=disabled
-Dbuild-python=disabled
"

termux_step_configure() {
termux_step_configure_meson
}
14 changes: 14 additions & 0 deletions gpkg/util-linux/fdisk.subpackage.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
TERMUX_SUBPKG_DESCRIPTION="Utilities to manipulate disk partition tables"
TERMUX_SUBPKG_DEPENDS="libfdisk-glibc, libmount-glibc, ncurses-glibc, readline-glibc, libsmartcols-glibc"
TERMUX_SUBPKG_DEPEND_ON_PARENT="no"
TERMUX_SUBPKG_INCLUDE="
glibc/share/man/man8/cfdisk.8.gz
glibc/share/man/man8/fdisk.8.gz
glibc/share/man/man8/sfdisk.8.gz
glibc/share/bash-completion/completions/sfdisk
glibc/share/bash-completion/completions/fdisk
glibc/share/bash-completion/completions/cfdisk
glibc/bin/sfdisk
glibc/bin/fdisk
glibc/bin/cfdisk
"
12 changes: 12 additions & 0 deletions gpkg/util-linux/libblkid.subpackage.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
TERMUX_SUBPKG_DESCRIPTION="Block device identification library"
TERMUX_SUBPKG_BREAKS="util-linux-glibc (<< 2.38.1-1)"
TERMUX_SUBPKG_REPLACES="util-linux-glibc (<< 2.38.1-1)"
TERMUX_SUBPKG_DEPEND_ON_PARENT="no"
TERMUX_SUBPKG_INCLUDE="
glibc/include/blkid/blkid.h
glibc/lib/libblkid.so
glibc/lib/libblkid.so.1
glibc/lib/libblkid.so.1.1.0
glibc/lib/pkgconfig/blkid.pc
glibc/share/man/man3/libblkid.3.gz
"
10 changes: 10 additions & 0 deletions gpkg/util-linux/libfdisk.subpackage.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
TERMUX_SUBPKG_DESCRIPTION="Library for manipulating disk partition tables"
TERMUX_SUBPKG_DEPENDS="libblkid-glibc, libuuid-glibc"
TERMUX_SUBPKG_DEPEND_ON_PARENT="no"
TERMUX_SUBPKG_INCLUDE="
glibc/lib/pkgconfig/fdisk.pc
glibc/lib/libfdisk.so
glibc/lib/libfdisk.so.1
glibc/lib/libfdisk.so.1.1.0
glibc/include/libfdisk/libfdisk.h
"
10 changes: 10 additions & 0 deletions gpkg/util-linux/libmount.subpackage.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
TERMUX_SUBPKG_DESCRIPTION="Library for (un)mounting filesystems"
TERMUX_SUBPKG_DEPENDS="libblkid-glibc, libsmartcols-glibc"
TERMUX_SUBPKG_DEPEND_ON_PARENT="no"
TERMUX_SUBPKG_INCLUDE="
glibc/include/libmount/libmount.h
glibc/lib/libmount.so
glibc/lib/libmount.so.1
glibc/lib/libmount.so.1.1.0
glibc/lib/pkgconfig/mount.pc
"
11 changes: 11 additions & 0 deletions gpkg/util-linux/libsmartcols.subpackage.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
TERMUX_SUBPKG_DESCRIPTION="Library for smart adaptive formatting of tabular data"
TERMUX_SUBPKG_BREAKS="util-linux-glibc (<< 2.38.1-1)"
TERMUX_SUBPKG_REPLACES="util-linux-glibc (<< 2.38.1-1)"
TERMUX_SUBPKG_DEPEND_ON_PARENT="no"
TERMUX_SUBPKG_INCLUDE="
glibc/lib/libsmartcols.so
glibc/lib/libsmartcols.so.1
glibc/lib/libsmartcols.so.1.1.0
glibc/lib/pkgconfig/smartcols.pc
glibc/include/libsmartcols/libsmartcols.h
"
9 changes: 9 additions & 0 deletions gpkg/util-linux/libuuid.subpackage.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
TERMUX_SUBPKG_DESCRIPTION="Library for handling universally unique identifiers"
TERMUX_SUBPKG_DEPEND_ON_PARENT="no"
TERMUX_SUBPKG_INCLUDE="
glibc/lib/pkgconfig/uuid.pc
glibc/lib/libuuid.so
glibc/lib/libuuid.so.1
glibc/lib/libuuid.so.1.3.0
glibc/include/uuid/uuid.h
"
26 changes: 26 additions & 0 deletions gpkg/util-linux/mount-utils.subpackage.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
TERMUX_SUBPKG_DESCRIPTION="Utilities for (un)mounting filesystems"
TERMUX_SUBPKG_DEPENDS="libblkid-glibc, libsmartcols-glibc, libmount-glibc"
TERMUX_SUBPKG_DEPEND_ON_PARENT="no"
TERMUX_SUBPKG_INCLUDE="
glibc/bin/findmnt
glibc/bin/fstrim
glibc/bin/lslocks
glibc/bin/mount
glibc/bin/swapoff
glibc/bin/swapon
glibc/bin/umount
glibc/share/bash-completion/completions/findmnt
glibc/share/bash-completion/completions/fstrim
glibc/share/bash-completion/completions/lslocks
glibc/share/bash-completion/completions/mount
glibc/share/bash-completion/completions/swapoff
glibc/share/bash-completion/completions/swapon
glibc/share/bash-completion/completions/umount
glibc/share/man/man8/findmnt.8.gz
glibc/share/man/man8/fstrim.8.gz
glibc/share/man/man8/lslocks.8.gz
glibc/share/man/man8/mount.8.gz
glibc/share/man/man8/swapoff.8.gz
glibc/share/man/man8/swapon.8.gz
glibc/share/man/man8/umount.8.gz
"
Loading

0 comments on commit e2ec563

Please sign in to comment.