ports/55365: [patch] astro/sscal: Fix installation by doing it ourselves

Volker Stolz stolz at i2.informatik.rwth-aachen.de
Fri Aug 8 07:00:34 UTC 2003


>Number:         55365
>Category:       ports
>Synopsis:       [patch] astro/sscal: Fix installation by doing it ourselves
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Aug 08 00:00:30 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     Volker Stolz
>Release:        FreeBSD 4.8-STABLE i386
>Organization:
Lehrstuhl für Informatik II
>Environment:
System: FreeBSD menelaos.informatik.rwth-aachen.de 4.8-STABLE FreeBSD 4.8-STABLE #7: Tue Aug 5 15:53:30 CEST 2003 root at menelaos.informatik.rwth-aachen.de:/usr/obj/usr/src/sys/MENELAOS i386


>Description:
- Fix broken installation procedure by doing it ourselves in do-install-target.
- Remove BROKEN
- portlint pkg-descr

Maintainer was contacted on Aug 1. Feel free to supersede this PR, I rather
use send-pr than keep in mind pending replies from maintainers.
>How-To-Repeat:
>Fix:
--- sscalc begins here ---
diff -urN /usr/ports/astro/sscalc/Makefile sscalc/Makefile
--- /usr/ports/astro/sscalc/Makefile	Tue Mar  4 23:08:38 2003
+++ sscalc/Makefile	Fri Aug  1 17:18:22 2003
@@ -13,8 +13,6 @@
 MAINTAINER=	kew at icehouse.net
 COMMENT=	A sunrise/sunset time calculator
 
-BROKEN=		"Installs manpage into wrong directory"
-
 pre-fetch:
 .if !defined(LAT)
 	@${ECHO_MSG} "Type \"make LAT=<nnn.nn> LON=<nnn.nn>\" to hardwire your site"
@@ -22,10 +20,11 @@
 	@${ECHO_MSG} "Compiling in lat/longs"
 .endif
 
-post-install:
-	@strip ${PREFIX}/bin/sscalc
-	@${MKDIR} ${PREFIX}/share/doc/sscalc
-	${INSTALL_DATA} ${WRKSRC}/cities.txt ${PREFIX}/share/doc/sscalc
-	${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/sscalc
+do-install:
+	@${MKDIR} ${DOCSDIR}
+	${INSTALL_PROGRAM} ${WRKSRC}/sscalc ${PREFIX}/bin
+	${INSTALL_MAN} ${WRKSRC}/sscalc.1.gz ${PREFIX}/man/man1
+	${INSTALL_DATA} ${WRKSRC}/cities.txt ${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
 
 .include <bsd.port.mk>
diff -urN /usr/ports/astro/sscalc/pkg-descr sscalc/pkg-descr
--- /usr/ports/astro/sscalc/pkg-descr	Sat Mar 30 01:21:44 2002
+++ sscalc/pkg-descr	Fri Aug  1 17:06:52 2003
@@ -3,7 +3,7 @@
 as long as you know the latitude and longitude of the location.
 
 The program is a port of the JavaScript program located at
-http://www.srrb.noaa.gov/highlights/sunrise/gen.html
+WWW: http://www.srrb.noaa.gov/highlights/sunrise/gen.html
 
 The page was written by Aaron Horiuchi, Chris Lehman and Chris
 Cornwall.
--- sscalc ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list