summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-text/dos2unix/files/dos2unix-3.1.patch')
-rw-r--r--app-text/dos2unix/files/dos2unix-3.1.patch41
1 files changed, 6 insertions, 35 deletions
diff --git a/app-text/dos2unix/files/dos2unix-3.1.patch b/app-text/dos2unix/files/dos2unix-3.1.patch
index 5f823b2e7a9b..676ecc5e8d65 100644
--- a/app-text/dos2unix/files/dos2unix-3.1.patch
+++ b/app-text/dos2unix/files/dos2unix-3.1.patch
@@ -1,49 +1,20 @@
---- dos2unix-3.1/Makefile.orig Thu Nov 19 07:09:38 1998
-+++ dos2unix-3.1/Makefile Fri Nov 17 13:25:35 2000
-@@ -1,10 +1,12 @@
-+CFLAGS=
-+
- default: dos2unix
-
- all: dos2unix link install
+--- dos2unix-3.1/Makefile
++++ dos2unix-3.1/Makefile
+@@ -1,7 +1,7 @@
dos2unix:
- gcc -O dos2unix.c -o dos2unix
-+ gcc $(CFLAGS) dos2unix.c -o dos2unix
++ $(CC) -Wall $(CFLAGS) $(LDFLAGS) dos2unix.c -o dos2unix
link:
-@@ -12,11 +14,10 @@
+@@ -12,7 +14,7 @@
ln -s dos2unix.1 mac2unix.1
clean:
- rm dos2unix
-+ rm -f dos2unix mac2unix mac2unix.1 *~ *.orig core
++ $(RM) dos2unix mac2unix mac2unix.1 *~ *.orig core
install:
install -m 755 dos2unix /usr/local/bin
- install -m 644 dos2unix.1 /usr/local/man/man1
- install -m 755 mac2unix /usr/local/bin
- install -m 644 mac2unix.1 /usr/local/man/man1
--
---- dos2unix-3.1/dos2unix.c.orig Thu Nov 19 07:19:25 1998
-+++ dos2unix-3.1/dos2unix.c Fri Nov 17 13:25:25 2000
-@@ -267,7 +267,7 @@
-
- strcpy (TempPath, "./d2utmp");
- strcat (TempPath, "XXXXXX");
-- mktemp (TempPath);
-+ mkstemp (TempPath);
-
- #ifdef DEBUG
- fprintf(stderr, "dos2unix: using %s as temp file\n", TempPath);
-@@ -347,7 +347,7 @@
-
- strcpy (TempPath, "./u2dtmp");
- strcat (TempPath, "XXXXXX");
-- mktemp (TempPath);
-+ mkstemp (TempPath);
-
- #ifdef DEBUG
- fprintf(stderr, "dos2unix: using %s as temp file\n", TempPath);