summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZee Eichel <zee@dracos-linux.org>2019-05-11 19:31:17 +0700
committerZee Eichel <zee@dracos-linux.org>2019-05-11 19:31:17 +0700
commita752cb6fb814d329f48a56be96dabb05724db51e (patch)
treecfedee2ea33d3f21e5e4682dc29c979d9d594a29
parent2024604099f9573517a32e24ac1297183a8cfa05 (diff)
downloaddemit.main-core-git.repo-a752cb6fb814d329f48a56be96dabb05724db51e.tar.gz
demit.main-core-git.repo-a752cb6fb814d329f48a56be96dabb05724db51e.tar.bz2
demit.main-core-git.repo-a752cb6fb814d329f48a56be96dabb05724db51e.zip
add net-tools,tar package build
-rw-r--r--PKGBUILD-NET-TOOLS32
-rw-r--r--PKGBUILD-TAR24
2 files changed, 56 insertions, 0 deletions
diff --git a/PKGBUILD-NET-TOOLS b/PKGBUILD-NET-TOOLS
new file mode 100644
index 0000000..b56618b
--- /dev/null
+++ b/PKGBUILD-NET-TOOLS
@@ -0,0 +1,32 @@
+#Maintainer: Zee Eichel <zee@dracos-linux.org>
+pkgname=net-tools
+pkgver=CVS_20101030
+pkgrel=1
+pkgdesc='The Net-tools package is a collection of programs for controlling the network subsystem of the Linux kernel.'
+arch=(x86_64)
+license=('GPL2')
+url='linuxfromscratch.org'
+depends=('libnl>=3.4.0')
+provides=("${pkgname}")
+conflicts=("${pkgname}")
+source=('net-tools-CVS_20101030.tar.gz'
+ 'net-tools-CVS_20101030-remove_dups-1.patch')
+sha256sums=('1d3bbfa96fcf4e5c67663c1866b312ec2cf011c01b158c798371e4e07742e0f8'
+ 'c96716b614b9d077ff7e5d513f07fd50d1b20286c95fd8e545226e1b4f6dda4f')
+
+prepare() {
+ cd "$pkgname"-"$pkgver"
+ patch -Np1 -i ../net-tools-CVS_20101030-remove_dups-1.patch
+}
+
+build() {
+ cd "$pkgname"-"$pkgver"
+ sed -i '/#include <netinet\/ip.h>/d' iptunnel.c &&
+ yes "" | make config &&
+ make
+}
+
+package() {
+ cd "$pkgname"-"$pkgver"
+ make DESTDIR="$pkgdir/" update
+ }
diff --git a/PKGBUILD-TAR b/PKGBUILD-TAR
new file mode 100644
index 0000000..e565b2c
--- /dev/null
+++ b/PKGBUILD-TAR
@@ -0,0 +1,24 @@
+#Maintainer: Zee Eichel <zee@dracos-linux.org>
+
+pkgname=tar
+pkgver=1.31
+pkgrel=1
+pkgdesc="tar is a computer software utility for collecting many files into one archive file."
+arch=(x86_64)
+url="www.gnupg.org"
+license=('GPLv3+')
+provides=("${pkgname}")
+conflicts=("${pkgname}")
+source=("http://ftp.gnu.org/gnu/tar/tar-1.31.tar.gz")
+sha256sums=("b471be6cb68fd13c4878297d856aebd50551646f4e3074906b1a74549c40d5a2")
+
+build() {
+ cd "$pkgname-$pkgver"
+ ./configure --prefix=/usr FORCE_UNSAFE_CONFIGURE=1 #bypassing non root
+ make
+}
+
+package() {
+ cd "$pkgname-$pkgver"
+ make DESTDIR="$pkgdir" install
+ }