openbsd-ports/misc/pdmenu/patches/patch-aa
kevlo 8a745fcf02 Initial import of pdmenu version 1.2.61.
pdmenu is a simple slang-based menu program.

Submitted by:	Matt Behrens <matt@zigg.com>
2000-06-02 03:01:17 +00:00

49 lines
2.3 KiB
Plaintext

--- autoconf/makeinfo.in.orig Fri Aug 27 23:27:37 1999
+++ autoconf/makeinfo.in Tue May 30 22:55:17 2000
@@ -9,6 +9,7 @@ exec_prefix = @exec_prefix@
BINDIR = @bindir@
MANDIR = @mandir@
LIBDIR = @libdir@/pdmenu
+EXAMPLESDIR = @datadir@/examples/pdmenu
SYSCONFDIR = @sysconfdir@
CC = @CC@
INSTALL = @INSTALL@
@@ -60,21 +61,25 @@ clean:
rm -f src/*.o pdmenu
install: all
- $(INSTALL) -d $(INSTALL_PREFIX)/$(BINDIR) \
- $(INSTALL_PREFIX)/$(MANDIR)/man1 \
- $(INSTALL_PREFIX)/$(MANDIR)/man5 \
- $(INSTALL_PREFIX)/$(SYSCONFDIR) \
- $(INSTALL_PREFIX)/$(LIBDIR)
+ $(INSTALL) -d $(INSTALL_PREFIX)/$(BINDIR)
+ $(INSTALL) -d $(INSTALL_PREFIX)/$(MANDIR)/man1
+ $(INSTALL) -d $(INSTALL_PREFIX)/$(MANDIR)/man5
+ $(INSTALL) -d $(INSTALL_PREFIX)/$(SYSCONFDIR)
+ $(INSTALL) -d $(INSTALL_PREFIX)/$(EXAMPLESDIR)
+ $(INSTALL) -d $(INSTALL_PREFIX)/$(EXAMPLESDIR)/newbie
$(INSTALL) -s pdmenu $(INSTALL_PREFIX)/$(BINDIR)
$(INSTALL) doc/pdmenu.man $(INSTALL_PREFIX)/$(MANDIR)/man1/pdmenu.1 -m 0644
$(INSTALL) doc/pdmenurc.man $(INSTALL_PREFIX)/$(MANDIR)/man5/pdmenurc.5 -m 0644
- if [ -e $(INSTALL_PREFIX)/$(SYSCONFDIR)/pdmenurc ]; then \
- echo "Backing up $(INSTALL_PREFIX)/$(SYSCONFDIR)/pdmenurc to $(INSTALL_PREFIX)/$(SYSCONFDIR)/pdmenurc.old .." ; \
- cp $(INSTALL_PREFIX)/$(SYSCONFDIR)/pdmenurc $(INSTALL_PREFIX)/$(SYSCONFDIR)/pdmenurc.old ; \
- fi
- $(INSTALL) examples/pdmenurc $(INSTALL_PREFIX)/$(SYSCONFDIR)/pdmenurc -m 0644
- $(INSTALL) examples/showdir.pl $(INSTALL_PREFIX)/$(LIBDIR)
- cd $(INSTALL_PREFIX)/$(LIBDIR) && $(LN_S) -f showdir.pl editdir.pl
+ $(INSTALL) examples/README $(INSTALL_PREFIX)/$(EXAMPLESDIR)
+ $(INSTALL) examples/ba.lpd $(INSTALL_PREFIX)/$(EXAMPLESDIR)
+ $(INSTALL) examples/pdmenurc $(INSTALL_PREFIX)/$(EXAMPLESDIR)
+ $(INSTALL) examples/pdmenurc.complex $(INSTALL_PREFIX)/$(EXAMPLESDIR)
+ $(INSTALL) examples/pdmenurc.monitor $(INSTALL_PREFIX)/$(EXAMPLESDIR)
+ $(INSTALL) examples/showdir.pl $(INSTALL_PREFIX)/$(EXAMPLESDIR)
+ cd $(INSTALL_PREFIX)/$(EXAMPLESDIR) && $(LN_S) -f showdir.pl editdir.pl
+ $(INSTALL) examples/newbie/modem-check $(INSTALL_PREFIX)/$(EXAMPLESDIR)/newbie
+ $(INSTALL) examples/newbie/pdmenurc.newbie $(INSTALL_PREFIX)/$(EXAMPLESDIR)/newbie
+ $(INSTALL) examples/newbie/rpm-info-on-command $(INSTALL_PREFIX)/$(EXAMPLESDIR)/newbie
test: pdmenu
./pdmenu examples/pdmenurc