openbsd-ports/news/tin/patches/patch-src_Makefile_in
naddy 614772767b - add icu4c as a dependency
- change e-mail address
- change COMMENT
- change spool to /var/spool/news - this matches leafnode
- disable checking for libuu
- do not try to write to /usr

From maintainer Joachim Schipper
2008-05-13 14:48:33 +00:00

58 lines
3.7 KiB
Plaintext

$OpenBSD: patch-src_Makefile_in,v 1.5 2008/05/13 14:48:33 naddy Exp $
--- src/Makefile.in.orig Thu May 4 03:19:04 2006
+++ src/Makefile.in Wed Apr 30 20:24:39 2008
@@ -78,6 +78,7 @@ LINK_LIBS = $(PCRE_LIBS) $(CANLIB) @LIBS@ @INN_NNTPLIB
# Where do you want the binary & manual page installed?
DESTDIR = @DESTDIR@
INS_BINARY_DIR = @bindir@
+INS_DATA_DIR = @datadir@/tin
INS_MANUAL_DIR = @mandir@/man
INS_SYSDEF_DIR = @TIN_DEFAULTS_DIR@
INS_MANUAL_EXT = 1
@@ -328,6 +329,7 @@ help :
$(DESTDIR)$(INS_MANUAL_DIR)$(INS_MANUAL_EXT) \
$(DESTDIR)$(INS_MANUAL_DIR)5 \
$(DESTDIR)$(INS_BINARY_DIR) \
+$(DESTDIR)$(INS_DATA_DIR) \
$(DESTDIR)$(INS_SYSDEF_DIR) :
$(top_srcdir)/mkdirs.sh $@
@@ -336,8 +338,6 @@ install_manpage : $(DESTDIR)$(INS_MANUAL_DIR)$(INS_MAN
@$(INSTALL) -m 444 $(DOCDIR)/tin.1 $(DESTDIR)$(INS_MANUAL_DIR)$(INS_MANUAL_EXT)/$(PROJECT).$(INS_MANUAL_EXT)
@( $(CD) $(DESTDIR)$(INS_MANUAL_DIR)$(INS_MANUAL_EXT) && $(RM) -f r$(PROJECT).$(INS_MANUAL_EXT) && $(LN) $(PROJECT).$(INS_MANUAL_EXT) r$(PROJECT).$(INS_MANUAL_EXT) )
@$(INSTALL) -m 444 $(DOCDIR)/tin.5 $(DESTDIR)$(INS_MANUAL_DIR)5/$(PROJECT).5
- @-if test ! -f $(DESTDIR)$(INS_MANUAL_DIR)5/mbox.5 ; then $(INSTALL) -m 444 $(DOCDIR)/mbox.5 $(DESTDIR)$(INS_MANUAL_DIR)5/mbox.5 ; else $(ECHO) " ... skipping $(DESTDIR)$(INS_MANUAL_DIR)5/mbox.5 - file already exists" ; fi
- @-if test ! -f $(DESTDIR)$(INS_MANUAL_DIR)5/mmdf.5 ; then $(INSTALL) -m 444 $(DOCDIR)/mmdf.5 $(DESTDIR)$(INS_MANUAL_DIR)5/mmdf.5 ; else $(ECHO) " ... skipping $(DESTDIR)$(INS_MANUAL_DIR)5/mmdf.5 - file already exists" ; fi
uninstall_manpage :
@$(ECHO) "Uninstalling $(PROJECT) manual page in $(DESTDIR)$(INS_MANUAL_DIR)$(INS_MANUAL_EXT) ..."
@@ -359,13 +359,13 @@ uninstall_sysdefs :
@-$(RM) -f $(DESTDIR)$(INS_SYSDEF_DIR)/tin.defaults
@-$(RM) -f $(DESTDIR)$(INS_SYSDEF_DIR)/mime.types
-install_helpers : $(DESTDIR)$(INS_BINARY_DIR) $(DESTDIR)$(INS_MANUAL_DIR)$(INS_MANUAL_EXT)
+install_helpers : $(DESTDIR)$(INS_BINARY_DIR) $(DESTDIR)$(INS_MANUAL_DIR)$(INS_MANUAL_EXT) $(DESTDIR)$(INS_DATA_DIR)
@$(ECHO) "Installing helper applications ..."
- @-if test ! -f $(DESTDIR)$(INS_BINARY_DIR)/url_handler.sh ; then $(INSTALL) -m 755 $(TOLDIR)/url_handler.sh $(DESTDIR)$(INS_BINARY_DIR)/url_handler.sh ; fi
- @-if test ! -f $(DESTDIR)$(INS_BINARY_DIR)/metamutt ; then $(INSTALL) -m 755 $(TOLDIR)/metamutt $(DESTDIR)$(INS_BINARY_DIR)/metamutt ; fi
- @$(INSTALL) -m 755 $(TOLDIR)/w2r.pl $(DESTDIR)$(INS_BINARY_DIR)/w2r.pl
- @$(INSTALL) -m 755 $(TOLDIR)/opt-case.pl $(DESTDIR)$(INS_BINARY_DIR)/opt-case.pl
- @$(INSTALL) -m 755 $(TOLDIR)/tinews.pl $(DESTDIR)$(INS_BINARY_DIR)/tinews.pl
+ @$(INSTALL) -m 755 $(TOLDIR)/url_handler.sh $(DESTDIR)$(INS_DATA_DIR)/url_handler.sh
+ @$(INSTALL) -m 755 $(TOLDIR)/metamutt $(DESTDIR)$(INS_DATA_DIR)/metamutt
+ @$(INSTALL) -m 755 $(TOLDIR)/w2r.pl $(DESTDIR)$(INS_DATA_DIR)/w2r.pl
+ @$(INSTALL) -m 755 $(TOLDIR)/opt-case.pl $(DESTDIR)$(INS_DATA_DIR)/opt-case.pl
+ @$(INSTALL) -m 755 $(TOLDIR)/tinews.pl $(DESTDIR)$(INS_DATA_DIR)/tinews.pl
@$(INSTALL) -m 444 $(DOCDIR)/w2r.1 $(DESTDIR)$(INS_MANUAL_DIR)$(INS_MANUAL_EXT)/w2r.pl.$(INS_MANUAL_EXT)
@$(INSTALL) -m 444 $(DOCDIR)/opt-case.1 $(DESTDIR)$(INS_MANUAL_DIR)$(INS_MANUAL_EXT)/opt-case.pl.$(INS_MANUAL_EXT)
@$(INSTALL) -m 444 $(DOCDIR)/tinews.1 $(DESTDIR)$(INS_MANUAL_DIR)$(INS_MANUAL_EXT)/tinews.pl.$(INS_MANUAL_EXT)
@@ -474,7 +474,7 @@ makecfg$X : $(SRCDIR)/makecfg.c \
$(INCDIR)/tin.h \
../include/autoconf.h
@SHOW_CC@
- @ECHO_CC@$(BUILD_CC) $(BUILD_CFLAGS) $(BUILD_CPPFLAGS) $(BUILD_LDFLAGS) -o $@ $(SRCDIR)/makecfg.c #$(BUILD_LIBS)
+ @ECHO_CC@$(BUILD_CC) $(BUILD_CFLAGS) $(BUILD_CPPFLAGS) $(BUILD_LDFLAGS) -o $@ $(SRCDIR)/makecfg.c $(BUILD_LIBS)
TIN_DEP = \
Makefile \