View | Details | Raw Unified | Return to bug 21326
Collapse All | Expand All

(-)surfraw/Makefile (-16 / +6 lines)
Lines 2-11 Link Here
2
# Date created:                2000-08-03
2
# Date created:                2000-08-03
3
# Whom:                        Christian Weisgerber <naddy@mips.inka.de>
3
# Whom:                        Christian Weisgerber <naddy@mips.inka.de>
4
#
4
#
5
# $FreeBSD$
5
# $FreeBSD: ports/www/surfraw/Makefile,v 1.1 2000/08/21 02:35:25 kris Exp $
6
6
7
PORTNAME=	surfraw
7
PORTNAME=	surfraw
8
PORTVERSION= 	0.5.7
8
PORTVERSION= 	1.0.1
9
CATEGORIES=	www
9
CATEGORIES=	www
10
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
10
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
11
MASTER_SITE_SUBDIR=	surfraw
11
MASTER_SITE_SUBDIR=	surfraw
Lines 14-32 Link Here
14
14
15
GNU_CONFIGURE=	yes
15
GNU_CONFIGURE=	yes
16
16
17
ELVI=	W altavista appwatch ask austlii cite cnn currency deja excite \
17
post-install:
18
	fast freshmeat ftpsearch google ircsearch linuxdoc netbsd \
18
	${MKDIR} ${PREFIX}/share/examples/surfraw
19
	newscientist pubmed raging rhyme slashdot sundocs sunsolve \
19
	${INSTALL_DATA} ${WRKSRC}/surfraw.conf ${PREFIX}/share/examples/surfraw
20
	thesaurus translate webster wetandwild xxx yahoo \
20
	@${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
21
22
do-install:
23
.for i in ${ELVI}
24
	${INSTALL_SCRIPT} ${WRKSRC}/elvi/${i} ${PREFIX}/bin
25
.endfor
26
	${INSTALL_SCRIPT} ${WRKSRC}/surfraw ${PREFIX}/bin
27
	${INSTALL_SCRIPT} ${WRKSRC}/surfraw-netscape-remote ${PREFIX}/bin
28
	${MKDIR} ${PREFIX}/share/surfraw/
29
	${INSTALL_DATA} ${WRKSRC}/elvi/surfraw_elvi.list ${PREFIX}/share/surfraw/
30
	${INSTALL_DATA} ${WRKSRC}/surfraw.conf ${PREFIX}/etc/surfraw.conf.sample
31
21
32
.include <bsd.port.mk>
22
.include <bsd.port.mk>
(-)surfraw/files/md5 (-1 / +1 lines)
Line 1 Link Here
1
MD5 (surfraw-0.5.7.tar.gz) = d73c9f49be0b337b57ad4e29323a72fa
1
MD5 (surfraw-1.0.1.tar.gz) = da4b780bf227f74cc39679b81b0503fc
(-)patch-ac (+10 lines)
Added Link Here
1
--- Makefile.am.orig	Thu Aug 24 20:43:26 2000
2
+++ Makefile.am	Sun Sep 17 16:26:39 2000
3
@@ -3,7 +3,6 @@
4
 SUBDIRS		= elvi
5
 
6
 bin_SCRIPTS	= surfraw surfraw-netscape-remote
7
-sysconf_DATA	= surfraw.conf
8
 devel_extra	= banner prebuild
9
 EXTRA_DIST	= surfraw.lsm.in surfraw.in surfraw.spec.in \
10
                   aclocal.m4 \
(-)patch-ad (+91 lines)
Added Link Here
1
--- Makefile.in.orig	Fri Aug 25 15:44:47 2000
2
+++ Makefile.in	Sun Sep 17 16:26:48 2000
3
@@ -70,7 +70,6 @@
4
 SUBDIRS = elvi
5
 
6
 bin_SCRIPTS = surfraw surfraw-netscape-remote
7
-sysconf_DATA = surfraw.conf
8
 devel_extra = banner prebuild
9
 EXTRA_DIST = surfraw.lsm.in surfraw.in surfraw.spec.in                   aclocal.m4 		  $(devel_extra)
10
 
11
@@ -80,8 +79,6 @@
12
 surfraw-netscape-remote
13
 SCRIPTS =  $(bin_SCRIPTS)
14
 
15
-DATA =  $(sysconf_DATA)
16
-
17
 DIST_COMMON =  README AUTHORS COPYING ChangeLog INSTALL Makefile.am \
18
 Makefile.in NEWS TODO aclocal.m4 config.guess config.sub configure \
19
 configure.in install-sh missing mkinstalldirs \
20
@@ -139,25 +136,6 @@
21
 	  rm -f $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`; \
22
 	done
23
 
24
-install-sysconfDATA: $(sysconf_DATA)
25
-	@$(NORMAL_INSTALL)
26
-	$(mkinstalldirs) $(DESTDIR)$(sysconfdir)
27
-	@list='$(sysconf_DATA)'; for p in $$list; do \
28
-	  if test -f $(srcdir)/$$p; then \
29
-	    echo " $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(sysconfdir)/$$p"; \
30
-	    $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(sysconfdir)/$$p; \
31
-	  else if test -f $$p; then \
32
-	    echo " $(INSTALL_DATA) $$p $(DESTDIR)$(sysconfdir)/$$p"; \
33
-	    $(INSTALL_DATA) $$p $(DESTDIR)$(sysconfdir)/$$p; \
34
-	  fi; fi; \
35
-	done
36
-
37
-uninstall-sysconfDATA:
38
-	@$(NORMAL_UNINSTALL)
39
-	list='$(sysconf_DATA)'; for p in $$list; do \
40
-	  rm -f $(DESTDIR)$(sysconfdir)/$$p; \
41
-	done
42
-
43
 # This directory's subdirectories are mostly independent; you can cd
44
 # into them and run `make' without going through this Makefile.
45
 # To change the values of `make' variables: instead of editing Makefiles,
46
@@ -313,7 +291,7 @@
47
 check: check-recursive
48
 installcheck-am:
49
 installcheck: installcheck-recursive
50
-install-exec-am: install-binSCRIPTS install-sysconfDATA
51
+install-exec-am: install-binSCRIPTS
52
 install-exec: install-exec-recursive
53
 
54
 install-data-am:
55
@@ -322,15 +300,15 @@
56
 install-am: all-am
57
 	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
58
 install: install-recursive
59
-uninstall-am: uninstall-binSCRIPTS uninstall-sysconfDATA
60
+uninstall-am: uninstall-binSCRIPTS
61
 uninstall: uninstall-recursive
62
-all-am: Makefile $(SCRIPTS) $(DATA)
63
+all-am: Makefile $(SCRIPTS)
64
 all-redirect: all-recursive
65
 install-strip:
66
 	$(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
67
 installdirs: installdirs-recursive
68
 installdirs-am:
69
-	$(mkinstalldirs)  $(DESTDIR)$(bindir) $(DESTDIR)$(sysconfdir)
70
+	$(mkinstalldirs)  $(DESTDIR)$(bindir)
71
 
72
 
73
 mostlyclean-generic:
74
@@ -363,12 +341,11 @@
75
 maintainer-clean: maintainer-clean-recursive
76
 	-rm -f config.status
77
 
78
-.PHONY: uninstall-binSCRIPTS install-binSCRIPTS uninstall-sysconfDATA \
79
-install-sysconfDATA install-data-recursive uninstall-data-recursive \
80
-install-exec-recursive uninstall-exec-recursive installdirs-recursive \
81
-uninstalldirs-recursive all-recursive check-recursive \
82
-installcheck-recursive info-recursive dvi-recursive \
83
-mostlyclean-recursive distclean-recursive clean-recursive \
84
+.PHONY: uninstall-binSCRIPTS install-binSCRIPTS install-data-recursive \
85
+uninstall-data-recursive install-exec-recursive \
86
+uninstall-exec-recursive installdirs-recursive uninstalldirs-recursive \
87
+all-recursive check-recursive installcheck-recursive info-recursive \
88
+dvi-recursive mostlyclean-recursive distclean-recursive clean-recursive \
89
 maintainer-clean-recursive tags tags-recursive mostlyclean-tags \
90
 distclean-tags clean-tags maintainer-clean-tags distdir info-am info \
91
 dvi-am dvi check check-am installcheck-am installcheck install-exec-am \
(-)patch-ae (+11 lines)
Added Link Here
1
--- elvi/Makefile.am.orig	Sun Sep 17 14:45:18 2000
2
+++ elvi/Makefile.am	Sun Sep 17 14:48:39 2000
3
@@ -34,7 +34,7 @@
4
 		  xxx \
5
 		  yahoo
6
 
7
-sysconf_DATA	= surfraw_elvi.list
8
+pkgdata_DATA	= surfraw_elvi.list
9
 
10
 EXTRA_DIST	= $(bin_SCRIPTS)
11
 
(-)patch-af (+92 lines)
Added Link Here
1
--- elvi/Makefile.in.orig	Sun Sep 17 14:45:22 2000
2
+++ elvi/Makefile.in	Sun Sep 17 14:50:10 2000
3
@@ -70,14 +70,14 @@
4
 bin_SCRIPTS =  		  altavista 		  appwatch 		  ask 		  austlii 		  britannica 		  cite 		  cnn 		  currency 		  deja 		  excite 		  fast 		  ftpsearch 		  freshmeat 		  jake 		  google 		  ircsearch 		  linuxdoc 		  netbsd 		  newscientist 		  pubmed 		  raging 		  rhyme 		  slashdot 		  sundocs 		  stockquote 		  sunsolve 		  thesaurus 		  translate 		  W 		  webster 		  wetandwild 		  xxx 		  yahoo
5
 
6
 
7
-sysconf_DATA = surfraw_elvi.list
8
+pkgdata_DATA = surfraw_elvi.list
9
 
10
 EXTRA_DIST = $(bin_SCRIPTS)
11
 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
12
 CONFIG_CLEAN_FILES = 
13
 SCRIPTS =  $(bin_SCRIPTS)
14
 
15
-DATA =  $(sysconf_DATA)
16
+DATA =  $(pkgdata_DATA)
17
 
18
 DIST_COMMON =  Makefile.am Makefile.in
19
 
20
@@ -115,23 +115,23 @@
21
 	  rm -f $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`; \
22
 	done
23
 
24
-install-sysconfDATA: $(sysconf_DATA)
25
+install-pkgdataDATA: $(pkgdata_DATA)
26
 	@$(NORMAL_INSTALL)
27
-	$(mkinstalldirs) $(DESTDIR)$(sysconfdir)
28
-	@list='$(sysconf_DATA)'; for p in $$list; do \
29
+	$(mkinstalldirs) $(DESTDIR)$(pkgdatadir)
30
+	@list='$(pkgdata_DATA)'; for p in $$list; do \
31
 	  if test -f $(srcdir)/$$p; then \
32
-	    echo " $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(sysconfdir)/$$p"; \
33
-	    $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(sysconfdir)/$$p; \
34
+	    echo " $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(pkgdatadir)/$$p"; \
35
+	    $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(pkgdatadir)/$$p; \
36
 	  else if test -f $$p; then \
37
-	    echo " $(INSTALL_DATA) $$p $(DESTDIR)$(sysconfdir)/$$p"; \
38
-	    $(INSTALL_DATA) $$p $(DESTDIR)$(sysconfdir)/$$p; \
39
+	    echo " $(INSTALL_DATA) $$p $(DESTDIR)$(pkgdatadir)/$$p"; \
40
+	    $(INSTALL_DATA) $$p $(DESTDIR)$(pkgdatadir)/$$p; \
41
 	  fi; fi; \
42
 	done
43
 
44
-uninstall-sysconfDATA:
45
+uninstall-pkgdataDATA:
46
 	@$(NORMAL_UNINSTALL)
47
-	list='$(sysconf_DATA)'; for p in $$list; do \
48
-	  rm -f $(DESTDIR)$(sysconfdir)/$$p; \
49
+	list='$(pkgdata_DATA)'; for p in $$list; do \
50
+	  rm -f $(DESTDIR)$(pkgdatadir)/$$p; \
51
 	done
52
 tags: TAGS
53
 TAGS:
54
@@ -160,23 +160,23 @@
55
 check: check-am
56
 installcheck-am:
57
 installcheck: installcheck-am
58
-install-exec-am: install-binSCRIPTS install-sysconfDATA
59
+install-exec-am: install-binSCRIPTS
60
 install-exec: install-exec-am
61
 
62
-install-data-am:
63
+install-data-am: install-pkgdataDATA
64
 install-data: install-data-am
65
 
66
 install-am: all-am
67
 	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
68
 install: install-am
69
-uninstall-am: uninstall-binSCRIPTS uninstall-sysconfDATA
70
+uninstall-am: uninstall-binSCRIPTS uninstall-pkgdataDATA
71
 uninstall: uninstall-am
72
 all-am: Makefile $(SCRIPTS) $(DATA)
73
 all-redirect: all-am
74
 install-strip:
75
 	$(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
76
 installdirs:
77
-	$(mkinstalldirs)  $(DESTDIR)$(bindir) $(DESTDIR)$(sysconfdir)
78
+	$(mkinstalldirs)  $(DESTDIR)$(bindir) $(DESTDIR)$(pkgdatadir)
79
 
80
 
81
 mostlyclean-generic:
82
@@ -206,8 +206,8 @@
83
 
84
 maintainer-clean: maintainer-clean-am
85
 
86
-.PHONY: uninstall-binSCRIPTS install-binSCRIPTS uninstall-sysconfDATA \
87
-install-sysconfDATA tags distdir info-am info dvi-am dvi check check-am \
88
+.PHONY: uninstall-binSCRIPTS install-binSCRIPTS uninstall-pkgdataDATA \
89
+install-pkgdataDATA tags distdir info-am info dvi-am dvi check check-am \
90
 installcheck-am installcheck install-exec-am install-exec \
91
 install-data-am install-data install-am install uninstall-am uninstall \
92
 all-redirect all-am all installdirs mostlyclean-generic \
(-)DEINSTALL (+53 lines)
Added Link Here
1
#!/bin/sh
2
#
3
# De-installation setup of surfraw
4
5
# exit on errors, use a sane path and install prefix
6
#
7
set -e
8
PATH=/bin:/usr/bin:/sbin:/usr/sbin
9
PREFIX=${PKG_PREFIX:-/usr/local}
10
CONFIG_FILE=${PREFIX}/etc/surfraw.conf
11
12
# Function: tell the user what they need to do to delete the port completely
13
#
14
do_notice()
15
{
16
    echo
17
    echo "+---------------"
18
    echo "| To completely deinstall the $1 package you need to perform"
19
    echo "| these steps as root:"
20
    echo "|"
21
    echo "|       rm -f ${CONFIG_FILE}"
22
    echo "|"
23
    echo "| Do not do this if you plan on re-installing $1"
24
    echo "| at some future time."
25
    echo "+---------------"
26
    echo
27
}
28
29
# Verify proper execution
30
#
31
if [ $# -ne 2 ]; then
32
    echo "usage: $0 distname { DEINSTALL | POST-DEINSTALL }" >&2
33
    exit 1
34
fi
35
36
# Verify/process the command
37
#
38
case $2 in
39
    DEINSTALL)
40
	if [ -f ${CONFIG_FILE} ]; then
41
	    do_notice "$1"
42
	fi
43
	;;
44
    POST-DEINSTALL)
45
        : nothing to post-deinstall for this port
46
        ;;
47
    *)
48
	echo "usage: $0 distname { DEINSTALL | POST-DEINSTALL }" >&2
49
	exit 1
50
	;;
51
esac
52
53
exit 0
(-)INSTALL (+67 lines)
Added Link Here
1
#!/bin/sh
2
#
3
# Pre/post-installation setup of surfraw
4
5
# exit on errors, use a sane path and install prefix
6
#
7
set -e
8
PATH=/bin:/usr/bin:/sbin:/usr/sbin
9
PREFIX=${PKG_PREFIX:-/usr/local}
10
CONFIG_FILE=${PREFIX}/etc/surfraw.conf
11
SAMPLE_CONFIG_DIR=${PREFIX}/share/examples/surfraw
12
13
# Function: tell the user what they need to do to use the port just installed
14
#
15
do_notice()
16
{
17
    echo
18
    echo "+---------------"
19
    echo "| The existing $1 configuration file, ${CONFIG_FILE},"
20
    echo "| has NOT been changed.  You may want to compare it to the"
21
    echo "| current sample files in ${SAMPLE_CONFIG_DIR}"
22
    echo "| and update your configuration as needed."
23
    echo "+---------------"
24
    echo
25
}
26
27
# Function: install configuration files
28
#
29
do_install()
30
{
31
    install -c -o root -g wheel ${SAMPLE_CONFIG_DIR}/surfraw.conf ${CONFIG_FILE}
32
    echo
33
    echo "+---------------"
34
    echo "| The $1 configuration file, ${CONFIG_FILE},"
35
    echo "| has been installed.  Please view this file and change"
36
    echo "| the configuration to meet your needs"
37
    echo "+---------------"
38
    echo
39
}
40
41
# Verify proper execution
42
#
43
if [ $# -ne 2 ]; then
44
    echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
45
    exit 1
46
fi
47
48
# Verify/process the command
49
#
50
case $2 in
51
    PRE-INSTALL)
52
	: nothing to pre-install for this port
53
	;;
54
    POST-INSTALL)
55
	if [ -f ${CONFIG_FILE} ]; then
56
	    do_notice "$1"
57
	else
58
	    do_install "$1"
59
	fi
60
	;;
61
    *)
62
	echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
63
	exit 1
64
	;;
65
esac
66
67
exit 0
(-)surfraw/pkg/PLIST (-1 / +5 lines)
Lines 3-8 Link Here
3
bin/appwatch
3
bin/appwatch
4
bin/ask
4
bin/ask
5
bin/austlii
5
bin/austlii
6
bin/britannica
6
bin/cite
7
bin/cite
7
bin/cnn
8
bin/cnn
8
bin/currency
9
bin/currency
Lines 13-18 Link Here
13
bin/ftpsearch
14
bin/ftpsearch
14
bin/google
15
bin/google
15
bin/ircsearch
16
bin/ircsearch
17
bin/jake
16
bin/linuxdoc
18
bin/linuxdoc
17
bin/netbsd
19
bin/netbsd
18
bin/newscientist
20
bin/newscientist
Lines 20-25 Link Here
20
bin/raging
22
bin/raging
21
bin/rhyme
23
bin/rhyme
22
bin/slashdot
24
bin/slashdot
25
bin/stockquote
23
bin/sundocs
26
bin/sundocs
24
bin/sunsolve
27
bin/sunsolve
25
bin/surfraw
28
bin/surfraw
Lines 30-35 Link Here
30
bin/wetandwild
33
bin/wetandwild
31
bin/xxx
34
bin/xxx
32
bin/yahoo
35
bin/yahoo
33
etc/surfraw.conf.sample
36
share/examples/surfraw/surfraw.conf
34
share/surfraw/surfraw_elvi.list
37
share/surfraw/surfraw_elvi.list
38
@dirrm share/examples/surfraw
35
@dirrm share/surfraw
39
@dirrm share/surfraw

Return to bug 21326