Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Jul 1996 01:25:57 -0700 (PDT)
From:      asami@cs.berkeley.edu (Satoshi Asami)
To:        jmz@freebsd.org
Cc:        ports@freebsd.org
Subject:   Review request: x11/XFree86 port cleanup
Message-ID:  <199607170825.BAA02773@silvia.hip.berkeley.edu>

next in thread | raw e-mail | index | archive | help
I took a look at the Makefiles, it seems like most of the code
duplicates in Makefile.ftp is unnecessary 'cause bsd.port.mk handles
multiple distfiles from multiple sites/directories just fine.  Also,
DIST_SUBDIR can be used to specify that all files go to
/usr/ports/distfiles/xc.

I tried it here, it seems to build ok.  BTW, I get a "usage: cp ..."
if I answer "no" to the XDM-AUTH* question.  Also, if I answer "yes"
(default) to the Kerberos question even though I don't have libkrb, it
will just die, is it too much to make it not even ask the question if
the library doesn't exist?

Satoshi (the guy with many requests)
-------
Index: Makefile
===================================================================
RCS file: /usr/cvs/ports/x11/XFree86/Makefile,v
retrieving revision 1.17
diff -u -r1.17 Makefile
--- Makefile	1996/02/15 00:53:15	1.17
+++ Makefile	1996/07/17 06:00:01
@@ -13,13 +13,17 @@
 #######################################################################
 #
 # uncomment one of the 2 lines below!
-#(X-Consortium CDROM, O'Reilly 'X-Companion' CDROM, or X by FTP (_*BIG*_)
+#
+# X11_ON_CDROM means you have either X-Consortium CDROM or O'Reilly's
+# 'X-Companion' CDROM, X11_VIA_FTP means you have the FreeBSD CDROM
+# or want to ftp the whole thing _*BIG*_)
+#
 #X11_ON_CDROM	=	yes
 #X11_VIA_FTP	=	yes
 
 #if you are compiling from a cdrom, set the directory where the
 # the patch files are
-X11FIXES = ${DISTDIR}/xc
+X11FIXES = ${DISTDIR}
 
 #define this if you are short of space - save ~28 Mbytes
 #REMOVE_NOT_ESSENTIAL	=	yes
@@ -35,6 +39,8 @@
 
 MAINTAINER=		jmz@FreeBSD.ORG
 
+DIST_SUBDIR	=	xc
+
 .if defined(DISTDIR)
 .if exists (${DISTDIR}/xc-1.tar.gz)
 X11_VIA_FTP = yes
@@ -58,11 +64,9 @@
 	@find ${WRKSRC}/ -name '*.orig' -exec rm -f {} ';'
 .endif
 	@(cd ${WRKSRC}; echo Good night...; make World)
-	@touch ${WRKDIR}/.build_done
 
 do-install:
 	@(cd ${WRKSRC}; make install; make install.man)
-	@touch ${WRKDIR}/.install_done
 .if defined(X11_ON_CDROM) 
 	@find /usr/X11R6/ -name 00_TRANS.TBL -exec rm -f {} ';'
 .endif
@@ -80,7 +84,6 @@
 	@rm -rf ${WRKDIR}
 	@mkdir -p ${WRKDIR}
 	@echo ${X11FIXES} > ${WRKDIR}/.cdrom
-	@${TOUCH} ${TOUCH_FLAGS} ${EXTRACT_COOKIE}
 
 .elif defined(X11_VIA_FTP)
 .include "Makefile.ftp"
@@ -105,4 +108,3 @@
 	ldconfig -m ${PREFIX}/lib
 
 .include <bsd.port.mk>
-
Index: Makefile.ftp
===================================================================
RCS file: /usr/cvs/ports/x11/XFree86/Makefile.ftp,v
retrieving revision 1.18
diff -u -r1.18 Makefile.ftp
--- Makefile.ftp	1996/07/01 20:28:33	1.18
+++ Makefile.ftp	1996/07/17 05:42:37
@@ -1,58 +1,18 @@
-DISTDIR=		${PORTSDIR}/distfiles/xc
 DISTFILES1	=	xc-1.tar.gz xc-2.tar.gz xc-3.tar.gz
-DISTFILES2	=	fixes/fix-12
-XFREE_DIFFS	=	XFree86-3.1.2.diff.gz \
+DISTFILES2	=	fix-12 \
+			XFree86-3.1.2.diff.gz \
 			3.1.2-3.1.2-S.diff.gz
-DISTFILES3      =       ${XFREE_DIFFS}
-DISTFILES	=	${DISTFILES1} ${DISTFILES3}
+DISTFILES	=	${DISTFILES1} ${DISTFILES2}
 
-.if !defined(MASTER_SITE_OVERRIDE)
-MASTER_SITES	=	ftp://ftp.x.org/pub/R6/	ftp://ftp.EU.net/X11/R6/
-MASTER_SITES2	=	ftp://ftp.ibp.fr/pub/X11/XFree86/XFree86-3.1.2/patches/	ftp://ftp.xfree86.org/pub/XFree86/3.1.2/patches/
-.else
-MASTER_SITES	=	${MASTER_SITE_OVERRIDE}xc/
-MASTER_SITES2   =       ${MASTER_SITE_OVERRIDE}xc/
-.endif
+MASTER_SITES	=	\
+	ftp://ftp.x.org/pub/R6/ \
+	ftp://ftp.EU.net/X11/R6/ \
+	ftp://ftp.x.org/pub/R6/fixes/ \
+	ftp://ftp.EU.net/X11/R6/fixes/ \
+	ftp://ftp.ibp.fr/pub/X11/XFree86/XFree86-3.1.2/patches/	\
+	ftp://ftp.xfree86.org/pub/XFree86/3.1.2/patches/
 
 EXTRACT_ONLY	=	${DISTFILES1}
-
-do-fetch:
-	@if [ ! -d ${DISTDIR} ]; then \
-		mkdir -p ${DISTDIR}; \
-	fi
-	@cd ${DISTDIR}; \
-	 for file in ${DISTFILES1} ${DISTFILES2} ${XFREE_TAR}; do \
-		f=`basename $$file`;\
-		if [ ! -f $$f ]; then \
-			echo ">> $$f doesn't seem to exist on this system."; \
-			for site in ${MASTER_SITES}; do \
-			    ${ECHO_MSG} ">> Attempting to fetch from $${site}"; \
-			    (${FETCH_CMD} ${FETCH_BEFORE_ARGS} $${site}$${file} ${FETCH_AFTER_ARGS} || true); \
-			    if [ -f $$file -o -f `/usr/bin/basename $$file` ]; then \
-				    continue 2; \
-			    fi \
-			done; \
-			echo ">> Couldn't fetch it - please try to retreive this";\
-			echo ">> port manually into ${DISTDIR} and try again."; \
-			exit 1; \
-	    	fi; \
-	   done
-	@cd ${DISTDIR}; \
-	  for file in ${DISTFILES3}; do \
-		if [ ! -f $$file ]; then \
-			echo ">> $$file doesn't seem to exist on this system."; \
-			for site in ${MASTER_SITES2}; do \
-			    ${ECHO_MSG} ">> Attempting to fetch from $${site}"; \
-			    (${FETCH_CMD} ${FETCH_BEFORE_ARGS} $${site}$${file} ${FETCH_AFTER_ARGS} || true); \
-			    if [ -f $$file -o -f `/usr/bin/basename $$file` ]; then \
-				    continue 2; \
-			    fi \
-			done; \
-			echo ">> Couldn't fetch it - please try to retreive this";\
-			echo ">> port manually into ${DISTDIR} and try again."; \
-			exit 1; \
-		fi \
-	  done
 
 pre-patch:
 	@echo ${DISTDIR} > ${WRKDIR}/.ftp
Index: files/md5
===================================================================
RCS file: /usr/cvs/ports/x11/XFree86/files/md5,v
retrieving revision 1.3
diff -u -r1.3 md5
--- md5	1995/11/07 16:16:55	1.3
+++ md5	1996/07/17 06:13:13
@@ -1,6 +1,6 @@
 MD5 (xc-1.tar.gz) = b5ae499273bddce4add5b62fc2b0b810
 MD5 (xc-2.tar.gz) = e81d2d235dd517c3e36f588221910b03
 MD5 (xc-3.tar.gz) = 01bb42c399a542395f0e17a182ba0e96
+MD5 (fix-12) = c1c86fcb0305089ce758b92b623ab24d
 MD5 (XFree86-3.1.2.diff.gz) = cbb4ca154ed0882b1ee75326089ef4b5
 MD5 (3.1.2-3.1.2-S.diff.gz) = 773acfe51ebbb4e557f4a14905b28f3f
-MD5 (cfont312.tgz) = 89a8e082dbbcfc2fd09cfedc47a54ff0



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199607170825.BAA02773>