diff options
author | Ali Mohammad Pur <ali.mpfard@gmail.com> | 2022-05-16 23:50:11 +0430 |
---|---|---|
committer | Ali Mohammad Pur <Ali.mpfard@gmail.com> | 2022-05-19 20:17:10 +0430 |
commit | 624c3c5a46f3f82d2edc2eccd3464191f52ea810 (patch) | |
tree | 6d5228a5e009886cfd597cec7cac5949463a55ba /Ports/tr | |
parent | a20773b5ce7481c9d9c4787c49df253a306262cd (diff) | |
download | serenity-624c3c5a46f3f82d2edc2eccd3464191f52ea810.zip |
Ports: Update tr's patches to use git patches
Diffstat (limited to 'Ports/tr')
-rw-r--r-- | Ports/tr/patches/0001-Add-an-install-target.patch | 26 | ||||
-rw-r--r-- | Ports/tr/patches/ReadMe.md | 7 | ||||
-rw-r--r-- | Ports/tr/patches/fix-Makefile.patch | 12 |
3 files changed, 33 insertions, 12 deletions
diff --git a/Ports/tr/patches/0001-Add-an-install-target.patch b/Ports/tr/patches/0001-Add-an-install-target.patch new file mode 100644 index 0000000000..248f6c226b --- /dev/null +++ b/Ports/tr/patches/0001-Add-an-install-target.patch @@ -0,0 +1,26 @@ +From 1793eeb7c83bcf1cf15684eb2c443bf2ba739bbe Mon Sep 17 00:00:00 2001 +From: Brian Callahan <bcallah@openbsd.org> +Date: Sun, 10 May 2020 12:00:03 -0400 +Subject: [PATCH] Add an install target + +--- + Makefile | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/Makefile b/Makefile +index 93cac80..5d68e52 100644 +--- a/Makefile ++++ b/Makefile +@@ -6,5 +6,9 @@ OBJS = str.o tr.o + all: ${OBJS} + ${CC} ${LDFLAGS} -o ${PROG} ${OBJS} -L/usr/local/lib -lpuffy + ++install: ++ install -c -m 755 tr ${DESTDIR}/usr/local/bin ++ install -c -m 644 tr.1 ${DESTDIR}/usr/local/share/man/man1 ++ + clean: + rm -f ${PROG} ${OBJS} +-- +2.36.1 + diff --git a/Ports/tr/patches/ReadMe.md b/Ports/tr/patches/ReadMe.md new file mode 100644 index 0000000000..f34ec2cd79 --- /dev/null +++ b/Ports/tr/patches/ReadMe.md @@ -0,0 +1,7 @@ +# Patches for tr on SerenityOS + +## `0001-Add-an-install-target.patch` + +Add an install target + + diff --git a/Ports/tr/patches/fix-Makefile.patch b/Ports/tr/patches/fix-Makefile.patch deleted file mode 100644 index 2b1a4b397f..0000000000 --- a/Ports/tr/patches/fix-Makefile.patch +++ /dev/null @@ -1,12 +0,0 @@ ---- tr-6.7/Makefile.orig Sun May 10 10:31:10 2020 -+++ tr-6.7/Makefile Sun May 10 10:31:45 2020 -@@ -6,5 +6,9 @@ - all: ${OBJS} - ${CC} ${LDFLAGS} -o ${PROG} ${OBJS} -L/usr/local/lib -lpuffy - -+install: -+ install -c -m 755 tr ${DESTDIR}/usr/local/bin -+ install -c -m 644 tr.1 ${DESTDIR}/usr/local/share/man/man1 -+ - clean: - rm -f ${PROG} ${OBJS} |