Skip to content

Commit

Permalink
Clean up the Makefile and fake.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Lo committed Apr 20, 2000
1 parent c656577 commit 308041f
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 11 deletions.
13 changes: 2 additions & 11 deletions misc/mmv/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,13 @@
# Date created: June 6 1998
# Whom: Angelos D. Keromytis
#
# $OpenBSD: Makefile,v 1.7 2000/04/09 17:37:11 espie Exp $
# $OpenBSD: Makefile,v 1.8 2000/04/20 05:03:36 kevlo Exp $
#

DISTNAME= mmv
PKGNAME= mmv-1.01b
CATEGORIES= misc
NEED_VERSION= 1.191
FAKE=No
MASTER_SITES= ftp://gatekeeper.dec.com/pub/usenet/comp.sources.unix/volume21/mmv/
DISTFILES= part01.Z part02.Z

Expand All @@ -27,7 +26,7 @@ PERMIT_DISTFILES_FTP= Yes
DIST_SUBDIR= ${DISTNAME}
WRKDIST= ${WRKDIR}
PATCH_DIST_ARGS= -d ${WRKSRC} --forward --quiet -E ${PATCH_DIST_STRIP} mmv.c
MAN1= mmv.1
FAKE= Yes

do-extract:
@rm -rf ${WRKDIR}
Expand All @@ -42,12 +41,4 @@ do-extract:
done ; \
cat mmv.c.? >mmv.c ; rm mmv.c.?

do-install:
cd ${PREFIX}/bin ; rm -f mmv mad mcp mln ; \
${INSTALL_PROGRAM} ${WRKSRC}/mmv ${PREFIX}/bin ; \
ln -fs ${PREFIX}/bin/mmv ${PREFIX}/bin/mad ; \
ln -fs ${PREFIX}/bin/mmv ${PREFIX}/bin/mcp ; \
ln -fs ${PREFIX}/bin/mmv ${PREFIX}/bin/mln ; \
${INSTALL_MAN} ${WRKSRC}/mmv.1 ${PREFIX}/man/man1

.include <bsd.port.mk>
22 changes: 22 additions & 0 deletions misc/mmv/patches/patch-ab
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
--- Makefile.orig Thu Apr 20 19:56:55 2000
+++ Makefile Thu Apr 20 19:57:51 2000
@@ -1,10 +1,16 @@
+INSTALL_PROGRAM = install -c -s -o root -g bin -m 555
+INSTALL_MAN = install -c -o root -g bin -m 444
+
all: mmv mmv.1

mmv: mmv.c
$(CC) -o mmv $(CFLAGS) mmv.c
install: all
- @echo "Install mmv according to local convention,"
- @echo "then make links named mcp, mad, and mln to mmv."
- @echo "Under System V, edit mmv.1 to uncomment the .nr O 1 line."
+ ${INSTALL_PROGRAM} mmv ${PREFIX}/bin ; \
+ ln -fs mmv ${PREFIX}/bin/mad ; \
+ ln -fs mmv ${PREFIX}/bin/mcp ; \
+ ln -fs mmv ${PREFIX}/bin/mln ; \
+ ${INSTALL_MAN} mmv.1 ${PREFIX}/man/man1
+
clean:
rm -f core a.out mmv mmv.o

0 comments on commit 308041f

Please sign in to comment.