Lines 67-77
Link Here
|
67 |
.include <bsd.port.subdir.mk> |
67 |
.include <bsd.port.subdir.mk> |
68 |
|
68 |
|
69 |
index: |
69 |
index: |
70 |
@rm -f ${.CURDIR}/${INDEXFILE} |
70 |
@rm -f ${INDEXDIR}/${INDEXFILE} |
71 |
@cd ${.CURDIR} && make ${.CURDIR}/${INDEXFILE} |
71 |
@cd ${.CURDIR} && make ${INDEXDIR}/${INDEXFILE} |
72 |
|
72 |
|
73 |
fetchindex: |
73 |
fetchindex: |
74 |
@cd ${.CURDIR} && ${FETCHINDEX} ${MASTER_SITE_INDEX}/${INDEXFILE}.bz2 && bunzip2 -f ${INDEXFILE}.bz2 && chmod a+r ${INDEXFILE} |
74 |
@cd ${INDEXDIR} && ${FETCHINDEX} ${MASTER_SITE_INDEX}/${INDEXFILE}.bz2 && bunzip2 -f ${INDEXFILE}.bz2 && chmod a+r ${INDEXFILE} |
75 |
|
75 |
|
76 |
MASTER_SITE_INDEX?= http://www.FreeBSD.org/ports/ |
76 |
MASTER_SITE_INDEX?= http://www.FreeBSD.org/ports/ |
77 |
FETCHINDEX?= fetch -am |
77 |
FETCHINDEX?= fetch -am |
Lines 85-91
Link Here
|
85 |
INDEX_ECHO_1ST= echo |
85 |
INDEX_ECHO_1ST= echo |
86 |
.endif |
86 |
.endif |
87 |
|
87 |
|
88 |
${.CURDIR}/${INDEXFILE}: |
88 |
${INDEXDIR}/${INDEXFILE}: |
89 |
@${INDEX_ECHO_1ST} "Generating ${INDEXFILE} - please wait.."; \ |
89 |
@${INDEX_ECHO_1ST} "Generating ${INDEXFILE} - please wait.."; \ |
90 |
if [ "${INDEX_PRISTINE}" != "" ]; then \ |
90 |
if [ "${INDEX_PRISTINE}" != "" ]; then \ |
91 |
export LOCALBASE=/nonexistentlocal; \ |
91 |
export LOCALBASE=/nonexistentlocal; \ |
Lines 119-136
Link Here
|
119 |
cat $${tmpdir}/${INDEXFILE}.desc.* | perl ${.CURDIR}/Tools/make_index | \ |
119 |
cat $${tmpdir}/${INDEXFILE}.desc.* | perl ${.CURDIR}/Tools/make_index | \ |
120 |
sed -e 's/ */ /g' -e 's/| */|/g' -e 's/ *|/|/g' -e 's./..g' | \ |
120 |
sed -e 's/ */ /g' -e 's/| */|/g' -e 's/ *|/|/g' -e 's./..g' | \ |
121 |
sort -t '|' +1 -2 | \ |
121 |
sort -t '|' +1 -2 | \ |
122 |
sed -e 's../.g' > ${.CURDIR}/${INDEXFILE}.tmp; \ |
122 |
sed -e 's../.g' > ${INDEXDIR}/${INDEXFILE}.tmp; \ |
123 |
if [ "${INDEX_PRISTINE}" != "" ]; then \ |
123 |
if [ "${INDEX_PRISTINE}" != "" ]; then \ |
124 |
sed -e "s,$${LOCALBASE},/usr/local," -e "s,$${X11BASE},/usr/X11R6," \ |
124 |
sed -e "s,$${LOCALBASE},/usr/local," -e "s,$${X11BASE},/usr/X11R6," \ |
125 |
${.CURDIR}/${INDEXFILE}.tmp > ${.CURDIR}/${INDEXFILE}; \ |
125 |
${INDEXDIR}/${INDEXFILE}.tmp > ${INDEXDIR}/${INDEXFILE}; \ |
126 |
else \ |
126 |
else \ |
127 |
mv ${.CURDIR}/${INDEXFILE}.tmp ${.CURDIR}/${INDEXFILE}; \ |
127 |
mv ${INDEXDIR}/${INDEXFILE}.tmp ${INDEXDIR}/${INDEXFILE}; \ |
128 |
fi; \ |
128 |
fi; \ |
129 |
rm -rf $${tmpdir}; \ |
129 |
rm -rf $${tmpdir}; \ |
130 |
echo " Done." |
130 |
echo " Done." |
131 |
|
131 |
|
132 |
print-index: ${.CURDIR}/${INDEXFILE} |
132 |
print-index: ${INDEXDIR}/${INDEXFILE} |
133 |
@awk -F\| '{ printf("Port:\t%s\nPath:\t%s\nInfo:\t%s\nMaint:\t%s\nIndex:\t%s\nB-deps:\t%s\nR-deps:\t%s\nE-deps:\t%s\nP-deps:\t%s\nF-deps:\t%s\nWWW:\t%s\n\n", $$1, $$2, $$4, $$6, $$7, $$8, $$9, $$11, $$12, $$13, $$10); }' < ${.CURDIR}/${INDEXFILE} |
133 |
@awk -F\| '{ printf("Port:\t%s\nPath:\t%s\nInfo:\t%s\nMaint:\t%s\nIndex:\t%s\nB-deps:\t%s\nR-deps:\t%s\nE-deps:\t%s\nP-deps:\t%s\nF-deps:\t%s\nWWW:\t%s\n\n", $$1, $$2, $$4, $$6, $$7, $$8, $$9, $$11, $$12, $$13, $$10); }' < ${INDEXDIR}/${INDEXFILE} |
134 |
|
134 |
|
135 |
CVS?= cvs |
135 |
CVS?= cvs |
136 |
SUP?= cvsup |
136 |
SUP?= cvsup |