[Midnightbsd-cvs] mports: bsd.port.subdir.mk: Add a new set of targets to create a file

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Sun May 18 00:34:56 EDT 2008

Log Message:
Add a new set of targets to create a file with commands to create the symlinks needed by the ftp server for packages. 

This is very "raw" and writes to / so it's not the best.  However, i need something to fix the current packages.  Also, we could run this on a mports tarball from a magus run to generate the files in the futre.  (until mport is done)

Modified Files:
        bsd.port.subdir.mk (r1.8 -> r1.9)

-------------- next part --------------
Index: bsd.port.subdir.mk
RCS file: /home/cvs/mports/Mk/bsd.port.subdir.mk,v
retrieving revision 1.8
retrieving revision 1.9
diff -L Mk/bsd.port.subdir.mk -L Mk/bsd.port.subdir.mk -u -r1.8 -r1.9
--- Mk/bsd.port.subdir.mk
+++ Mk/bsd.port.subdir.mk
@@ -122,7 +122,7 @@
 .if defined(SUBDIR) && !empty(SUBDIR)
-.for __target in ${TARGETS} checksubdirs describe readmes
+.for __target in ${TARGETS} checksubdirs describe readmes port-ftplinks
 ${SUBDIR:S/^/_/:S/$/.${__target}/}: _SUBDIRUSE
@@ -234,6 +234,28 @@
+.if !target(port-ftplinks)
+.if defined(PORTSTOP)
+port-ftplinks: port-ftplink ${SUBDIR:S/^/_/:S/$/.port-ftplinks/}
+port-ftplinks: port-ftplink
+.if !target(port-ftplink)
+	@make port-symlen
+.for entry in ${SUBDIR}
+.if exists(${entry})
+.if !defined(PORTSTOP)
+	@echo "ln -s ../All/`cd ${entry}; make package-name` ${entry}.tbz " >> /portsymlink.txt
 .if !target(readmes)
 .if defined(PORTSTOP)
 readmes: readme ${SUBDIR:S/^/_/:S/$/.readmes/}
@@ -244,6 +266,7 @@
 .if !target(readme)
 	@rm -f README.html

More information about the Midnightbsd-cvs mailing list