From ec04274cff5deb21137f5c1a0064d85107d59616 Mon Sep 17 00:00:00 2001 From: Curtis McEnroe Date: Tue, 27 Nov 2018 18:30:30 -0500 Subject: Fix ports for Linux --- port/caesar/Makefile | 4 +++- port/caesar/caesar.c | 2 +- port/cgram/Makefile | 2 +- port/file2c/Makefile | 4 +--- port/file2c/file2c.c | 4 ++-- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/port/caesar/Makefile b/port/caesar/Makefile index 3910ae5e..cf939acb 100644 --- a/port/caesar/Makefile +++ b/port/caesar/Makefile @@ -1,9 +1,11 @@ +LDLIBS = -lm + all: caesar rot13 clean: rm -f caesar rot13 -install: +install: caesar rot13 caesar.6 mkdir -p ~/.local/bin ~/.local/share/man/man6 cp caesar rot13 ~/.local/bin cp caesar.6 ~/.local/share/man/man6 diff --git a/port/caesar/caesar.c b/port/caesar/caesar.c index 7f4009fd..cd6cd579 100644 --- a/port/caesar/caesar.c +++ b/port/caesar/caesar.c @@ -47,7 +47,7 @@ static const char sccsid[] = "@(#)caesar.c 8.1 (Berkeley) 5/31/93"; #endif /* not lint */ #endif #include -__FBSDID("$FreeBSD: releng/11.2/usr.bin/caesar/caesar.c 241846 2012-10-22 03:06:53Z eadler $"); +//__FBSDID("$FreeBSD: releng/11.2/usr.bin/caesar/caesar.c 241846 2012-10-22 03:06:53Z eadler $"); #include #include diff --git a/port/cgram/Makefile b/port/cgram/Makefile index 68f96353..1a0b10c1 100644 --- a/port/cgram/Makefile +++ b/port/cgram/Makefile @@ -5,7 +5,7 @@ cgram: clean: rm -f cgram -install: +install: cgram cgram.6 mkdir -p ~/.local/bin ~/.local/share/man/man6 cp cgram ~/.local/bin cp cgram.6 ~/.local/share/man/man6 diff --git a/port/file2c/Makefile b/port/file2c/Makefile index b8b03e3c..5917b82d 100644 --- a/port/file2c/Makefile +++ b/port/file2c/Makefile @@ -1,11 +1,9 @@ -PREFIX = ~/.local - file2c: clean: rm -f file2c -install: +install: file2c file2c.1 mkdir -p ~/.local/bin ~/.local/share/man/man1 cp file2c ~/.local/bin cp file2c.1 ~/.local/share/man/man1 diff --git a/port/file2c/file2c.c b/port/file2c/file2c.c index d5c7815d..cff7f602 100644 --- a/port/file2c/file2c.c +++ b/port/file2c/file2c.c @@ -8,7 +8,7 @@ */ #include -__FBSDID("$FreeBSD: releng/11.2/usr.bin/file2c/file2c.c 200462 2009-12-13 03:14:06Z delphij $"); +//__FBSDID("$FreeBSD: releng/11.2/usr.bin/file2c/file2c.c 200462 2009-12-13 03:14:06Z delphij $"); #include #include @@ -20,7 +20,7 @@ usage(void) { fprintf(stderr, "usage: %s [-sx] [-n count] [prefix [suffix]]\n", - getprogname()); + "file2c"); exit(1); } -- cgit 1.4.1