Bug 24743 - a2ps port installs files in /
Summary: a2ps port installs files in /
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Dirk Meyer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-01-30 21:30 UTC by knarf
Modified: 2003-06-11 22:23 UTC (History)
0 users

See Also:


Attachments
file.diff (317 bytes, patch)
2001-01-30 21:30 UTC, knarf
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description knarf 2001-01-30 21:30:00 UTC
Installing a2ps-a4 port installs the following files:

-r--r--r--  1 root  wheel   3937 Jan 30 21:58 /a2ps-print.el
-r--r--r--  1 root  wheel  11168 Jan 30 21:58 /a2ps.el

Fix: This works for me:
	
How-To-Repeat: 
cd /var/db/pkg && pkg_delete *emacs* && cd /usr/ports/print/a2ps-a4 \\
&& make install && ls -l /a2ps*

(works only if there are no dependencies on a2ps like apsfilter)
Comment 1 dirk freebsd_committer freebsd_triage 2001-01-30 23:49:33 UTC
Responsible Changed
From-To: freebsd-ports->chuckr

Over to maintainer.
Comment 2 Bjoern A. Zeeb 2002-12-30 23:01:10 UTC
>Submitter-Id:	current-users
>Originator:	Bjoern A. Zeeb
>Organization:	Zabbadoz.NeT
>Confidential:	no
>Synopsis:	Re: ports/24743 : Fix a2ps-letter plist and install
>Severity:	non-critical
>Priority:	medium
>Category:	ports
>Class:		update
>Release:	FreeBSD 4.7-STABLE i386
>Environment:
System: FreeBSD e0-0.zab2.int.zabbadoz.net 4.7-STABLE FreeBSD 4.7-STABLE #0: Fri Dec 27 22:08:07 UTC 2002 bz@e0-0.zab2.int.zabbadoz.net:/export/src/src/obj/export/src/src/RELENG_4/src/sys/ZAB2-2002122701 i386


>Description:
	- file not in pkg-plist
	- problem reported in
	  http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/24743
	  -> files installed to /


>Fix:
	- the above +
	- minor beaty changes to make portlint more happy

	incremened PORTREVISION due to notable
	install/pkg-plist changes

PS: Please close ports/30298; a patch has already beend included
	(not check by whom and when but it is there).


--- print/a2ps-letter/Makefile.orig	Mon Dec 30 20:51:58 2002
+++ print/a2ps-letter/Makefile	Mon Dec 30 22:40:18 2002
@@ -7,7 +7,7 @@
 
 PORTNAME=	a2ps
 PORTVERSION=	4.13
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	print
 MASTER_SITES=	ftp://ftp.enst.fr/pub/unix/a2ps/ \
 		${MASTER_SITE_GNU}
@@ -21,12 +21,25 @@
 USE_PERL5=	yes
 GNU_CONFIGURE=	yes
 INSTALLS_SHLIB=	yes
-MAN1=		a2ps.1 ogonkify.1 card.1 psmandup.1 fixps.1 pdiff.1 psset.1 texi2dvi4a2ps.1
+MAN1=		a2ps.1 ogonkify.1 card.1 psmandup.1 fixps.1
+MAN1+=		pdiff.1 psset.1 texi2dvi4a2ps.1
 
 PAPERSIZE?=	letter
 PAPERSIZECNF=	${PAPERSIZE:S/l/L/:S/a/A/}
 STRIP=
-CONFIGURE_ARGS=	--with-medium=${PAPERSIZECNF} --sharedstatedir=$(PREFIX)/share --sysconfdir=$(PREFIX)/etc --datadir=$(PREFIX)/share --localstatedir=$(PREFIX)/share
+CONFIGURE_ARGS+=	--with-medium=${PAPERSIZECNF} \
+		--sharedstatedir=${PREFIX}/share \
+		--sysconfdir=${PREFIX}/etc \
+		--datadir=${PREFIX}/share \
+		--localstatedir=${PREFIX}/share
+
+.if defined(EMACS) && (${EMACS} == "no")
+EMACS=		no
+PLIST_SUB+=	NOEMACS="@comment "
+.else
+EMACS=		yes
+PLIST_SUB+=	NOEMACS=""
+.endif
 
 .if ${PAPERSIZE} != a4 && ${PAPERSIZE} != letter && ${PAPERSIZE} != letterdj
 .BEGIN:
@@ -39,11 +52,27 @@
 .endif
 
 post-extract:
-	$(CP) $(DISTDIR)/sheets.map $(WRKSRC)/sheets/sheets.map
+	${CP} ${DISTDIR}/sheets.map ${WRKSRC}/sheets/sheets.map
+
+post-configure:
+	@${CP} ${WRKSRC}/contrib/emacs/Makefile \
+		${WRKSRC}/contrib/emacs/Makefile.Dist
+.if (${EMACS} != "no")
+	@${SED} -e '/^lispdir/s#\(.*\)#\1 ${PREFIX}/share/emacs/site-lisp#' \
+		${WRKSRC}/contrib/emacs/Makefile.Dist > \
+		${WRKSRC}/contrib/emacs/Makefile
+.else
+	@${SED} -e '/^dist_lisp_LISP/s#\(dist_lisp_LISP =\).*#\1#' \
+		${WRKSRC}/contrib/emacs/Makefile.Dist > \
+		${WRKSRC}/contrib/emacs/Makefile
+.endif
 
 post-install:
-	strip ${PREFIX}/bin/a2ps
-	(cd ${WRKSRC}/doc; ${MAKE} install)
-	$(RM) -f $(PREFIX)/lib/liba2ps.la
+	@${STRIP_CMD} ${PREFIX}/bin/a2ps
+	@(cd ${WRKSRC}/doc; ${MAKE} install)
+	@install-info ${PREFIX}/info/a2ps.info ${PREFIX}/info/dir
+	@install-info ${PREFIX}/info/ogonkify.info ${PREFIX}/info/dir
+	@install-info ${PREFIX}/info/regex.info ${PREFIX}/info/dir
+	@${RM} -f ${PREFIX}/lib/liba2ps.la
 
 .include <bsd.port.mk>
--- print/a2ps-letter/pkg-plist.orig	Mon Dec 30 20:20:12 2002
+++ print/a2ps-letter/pkg-plist	Mon Dec 30 22:35:16 2002
@@ -77,6 +77,7 @@
 share/locale/da/LC_MESSAGES/a2ps.mo
 share/locale/de/LC_MESSAGES/a2ps.mo
 share/locale/es/LC_MESSAGES/a2ps.mo
+share/locale/et/LC_MESSAGES/a2ps.mo
 share/locale/fr/LC_MESSAGES/a2ps.mo
 share/locale/it/LC_MESSAGES/a2ps.mo
 share/locale/ko/LC_MESSAGES/a2ps.mo
@@ -88,9 +89,9 @@
 share/locale/sl/LC_MESSAGES/a2ps.mo
 share/locale/sv/LC_MESSAGES/a2ps.mo
 share/locale/tr/LC_MESSAGES/a2ps.mo
-@unexec rmdir share/locale/*/LC_MESSAGES 2>/dev/null || true
-@unexec rmdir share/locale/* 2>/dev/null || true
-@unexec rmdir share/locale 2>/dev/null || true
+@unexec rmdir %D/share/locale/*/LC_MESSAGES 2>/dev/null || true
+@unexec rmdir %D/share/locale/* 2>/dev/null || true
+@unexec rmdir %D/share/locale 2>/dev/null || true
 share/a2ps/sheets/sheets.map
 share/a2ps/sheets/ada.ssh
 share/a2ps/sheets/asn1.ssh
@@ -246,7 +247,8 @@
 share/a2ps/ppd/README
 share/a2ps/ppd/level1.ppd
 share/a2ps/ppd/level2.ppd
-@comment share/emacs/site-lisp/a2ps.el
+%%NOEMACS%%share/emacs/site-lisp/a2ps.el
+%%NOEMACS%%share/emacs/site-lisp/a2ps-print.el
 bin/a2ps
 bin/ogonkify
 bin/composeglyphs
@@ -257,9 +259,9 @@
 bin/pdiff
 bin/psmandup
 bin/psset
-@unexec install-info --delete --info-dir=%D/info %D/info/a2ps.info
-@unexec install-info --delete --info-dir=%D/info %D/info/ogonkify.info
-@unexec install-info --delete --info-dir=%D/info %D/info/regex.info
+@unexec install-info --delete %D/info/a2ps.info %D/info/dir
+@unexec install-info --delete %D/info/ogonkify.info %D/info/dir
+@unexec install-info --delete %D/info/regex.info %D/info/dir
 info/ogonkify.info
 info/a2ps.info
 info/a2ps.info-1
@@ -272,9 +274,9 @@
 info/regex.info-1
 info/regex.info-2
 info/regex.info-3
-@exec install-info --info-dir=%D/info %D/info/a2ps.info
-@exec install-info --info-dir=%D/info %D/info/ogonkify.info
-@exec install-info --info-dir=%D/info %D/info/regex.info
+@exec install-info %D/info/a2ps.info %D/info/dir
+@exec install-info %D/info/ogonkify.info %D/info/dir
+@exec install-info %D/info/regex.info %D/info/dir
 include/liba2ps.h
 lib/liba2ps.a
 @dirrm share/a2ps/ppd
Comment 3 Kris Kennaway freebsd_committer freebsd_triage 2003-06-08 01:31:50 UTC
Responsible Changed
From-To: chuckr->freebsd-ports-bugs

Chuck no longer maintains this port
Comment 4 Dirk Meyer freebsd_committer freebsd_triage 2003-06-10 19:15:47 UTC
Responsible Changed
From-To: freebsd-ports-bugs->dinoex

I will take care of this.
Comment 5 Dirk Meyer freebsd_committer freebsd_triage 2003-06-11 22:21:54 UTC
State Changed
From-To: open->closed

committed, thanks. 
The detection in the emacs makefile have beeen fixed. 
so the Makefile handling was not needed.