summaryrefslogtreecommitdiffstats
path: root/base/patch
diff options
context:
space:
mode:
Diffstat (limited to 'base/patch')
-rw-r--r--base/patch/.footprint7
-rw-r--r--base/patch/.md5sum2
-rwxr-xr-xbase/patch/Pkgfile20
3 files changed, 29 insertions, 0 deletions
diff --git a/base/patch/.footprint b/base/patch/.footprint
new file mode 100644
index 000000000..21758defe
--- /dev/null
+++ b/base/patch/.footprint
@@ -0,0 +1,7 @@
+drwxr-xr-x root/root usr/
+drwxr-xr-x root/root usr/bin/
+-rwxr-xr-x root/root usr/bin/patch
+drwxr-xr-x root/root usr/share/
+drwxr-xr-x root/root usr/share/man/
+drwxr-xr-x root/root usr/share/man/man1/
+-rw-r--r-- root/root usr/share/man/man1/patch.1.gz
diff --git a/base/patch/.md5sum b/base/patch/.md5sum
new file mode 100644
index 000000000..2ffdeb24b
--- /dev/null
+++ b/base/patch/.md5sum
@@ -0,0 +1,2 @@
+a2f0901f42e87ad3d5fefbccee6a09f4 patch-2.5.9-fixes-1.patch
+dacfb618082f8d3a2194601193cf8716 patch-2.5.9.tar.gz
diff --git a/base/patch/Pkgfile b/base/patch/Pkgfile
new file mode 100755
index 000000000..126eb2a07
--- /dev/null
+++ b/base/patch/Pkgfile
@@ -0,0 +1,20 @@
+# Description: GNU patch
+# URL: http://www.gnu.org/software/patch/patch.html
+# Maintainer: Linux From Scratch
+# Packager: thierryn1 at hispeed dot ch
+# Depends on: module-init-tools
+
+name=patch
+version=2.5.9
+release=1
+source=(http://ftp.gnu.org/gnu/$name/$name-$version.tar.gz \
+http://www.linuxfromscratch.org/patches/lfs/development/patch-$version-fixes-1.patch)
+build() {
+cd $name-$version
+patch -Np1 -i ../patch-$version-fixes-1.patch
+./configure --prefix=/usr \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info
+make
+make prefix=$PKG/usr mandir=$PKG/usr/share/man install
+}