openbsd-ports/misc/pdmenu/patches/patch-autoconf_makeinfo_in
2003-12-31 21:36:51 +00:00

50 lines
2.4 KiB
Plaintext

$OpenBSD: patch-autoconf_makeinfo_in,v 1.1 2003/12/31 21:36:51 pvalchev Exp $
--- autoconf/makeinfo.in.orig 2001-07-14 21:26:21.000000000 -0600
+++ autoconf/makeinfo.in 2003-12-31 14:48:02.000000000 -0700
@@ -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