[BACK]Return to bsd.port.mk CVS log [TXT][DIR] Up to [local] / src / share / mk

Diff for /src/share/mk/bsd.port.mk between version 1.49 and 1.50

version 1.49, 1998/11/17 07:14:16 version 1.50, 1998/11/19 04:20:09
Line 21 
Line 21 
 # contact information on the person(s) to contact if you have questions/  # contact information on the person(s) to contact if you have questions/
 # suggestions about that specific port.  By default (if no MAINTAINER  # suggestions about that specific port.  By default (if no MAINTAINER
 # is listed), a port is maintained by the subscribers of the ports@freebsd.org  # is listed), a port is maintained by the subscribers of the ports@freebsd.org
 # mailing list (OpenBSD: ports@openbsd.org), and any correspondece  # mailing list (OpenBSD: ports@openbsd.org), and any correspondence
 # should be directed there.  # should be directed there.
 #  #
 FreeBSD_MAINTAINER=     asami@FreeBSD.ORG  FreeBSD_MAINTAINER=     asami@FreeBSD.ORG
Line 114 
Line 114 
 # EXTRACT_ONLY  - If defined, a subset of ${DISTFILES} you want to  # EXTRACT_ONLY  - If defined, a subset of ${DISTFILES} you want to
 #                                 actually extract.  #                                 actually extract.
 # PATCHDIR              - A directory containing any additional patches you made  # PATCHDIR              - A directory containing any additional patches you made
 #                                 to port this software to FreeBSD (default:  #                                 to port this software to OpenBSD (default:
 #                                 ${.CURDIR}/patches)  #                                 ${.CURDIR}/patches)
   # PATCH_LIST    - list of patches to apply, can include wildcards (default:
   #                 patch-*)
 # SCRIPTDIR     - A directory containing any auxiliary scripts  # SCRIPTDIR     - A directory containing any auxiliary scripts
 #                                 (default: ${.CURDIR}/scripts)  #                                 (default: ${.CURDIR}/scripts)
 # FILESDIR              - A directory containing any miscellaneous additional files.  # FILESDIR              - A directory containing any miscellaneous additional files.
Line 310 
Line 312 
 #                                 the same file.  #                                 the same file.
 # checksum              - Use files/md5 to ensure that your distfiles are valid.  # checksum              - Use files/md5 to ensure that your distfiles are valid.
 # makesum               - Generate files/md5 (only do this for your own ports!).  # makesum               - Generate files/md5 (only do this for your own ports!).
   # addsum                - update files/md5 in a non-destructive way (own ports only!)
 # readme                - Create a README.html file describing the category or package  # readme                - Create a README.html file describing the category or package
 # mirror-distfiles      - Mirror the distfile(s) if they are freely redistributable  # mirror-distfiles      - Mirror the distfile(s) if they are freely redistributable
 #                                 Setting MIRROR_DISTFILE to "no" in the package Makefile  #                                 Setting MIRROR_DISTFILE to "no" in the package Makefile
Line 382 
Line 385 
 PATCHDIR?=              ${.CURDIR}/patches  PATCHDIR?=              ${.CURDIR}/patches
 .endif  .endif
   
   PATCH_LIST?=    patch-*
   
 .if exists(${.CURDIR}/scripts.${ARCH}-${OPSYS})  .if exists(${.CURDIR}/scripts.${ARCH}-${OPSYS})
 SCRIPTDIR?=             ${.CURDIR}/scripts.${ARCH}-${OPSYS}  SCRIPTDIR?=             ${.CURDIR}/scripts.${ARCH}-${OPSYS}
 .elif exists(${.CURDIR}/scripts.${OPSYS})  .elif exists(${.CURDIR}/scripts.${OPSYS})
Line 668 
Line 673 
 GZIP_CMD?=      /usr/bin/gzip -nf ${GZIP}  GZIP_CMD?=      /usr/bin/gzip -nf ${GZIP}
 LDCONFIG?=      [ ! -x /sbin/ldconfig ] || /sbin/ldconfig  LDCONFIG?=      [ ! -x /sbin/ldconfig ] || /sbin/ldconfig
 LN?=            /bin/ln  LN?=            /bin/ln
   M4?=            /usr/bin/m4
 MKDIR?=         /bin/mkdir -p  MKDIR?=         /bin/mkdir -p
 MV?=            /bin/mv  MV?=            /bin/mv
 READLINK?=      /usr/bin/readlink  READLINK?=      /usr/bin/readlink
Line 1064 
Line 1070 
         @${DO_NADA}          @${DO_NADA}
 makesum:  makesum:
         @${DO_NADA}          @${DO_NADA}
   addsum:
           @${DO_NADA}
 .endif  .endif
   
 # Disable patch  # Disable patch
Line 1231 
Line 1239 
           done)            done)
 .endif  .endif
         @if [ -d ${PATCHDIR} ]; then \          @if [ -d ${PATCHDIR} ]; then \
                 if [ "`echo ${PATCHDIR}/patch-*`" = "${PATCHDIR}/patch-*" ]; then \                  for i in ${PATCHDIR}/${PATCH_LIST}; do \
                         ${ECHO_MSG} "===>   Ignoring empty patch directory"; \                          case $$i in \
                         if [ -d ${PATCHDIR}/CVS ]; then \                                  *.orig|*.rej|*~) \
                                 ${ECHO_MSG} "===>   Perhaps you forgot the -P flag to cvs co or update?"; \                                          ${ECHO_MSG} "===>   Ignoring patchfile $$i" ; \
                         fi; \                                          ;; \
                 else \                                  *) \
                         ${ECHO_MSG} "===>  Applying ${OPSYS} patches for ${PKGNAME}" ; \                                      if [ -e $$i ]; then \
                         for i in ${PATCHDIR}/patch-*; do \  
                                 case $$i in \  
                                         *.orig|*.rej|*~) \  
                                                 ${ECHO_MSG} "===>   Ignoring patchfile $$i" ; \  
                                                 ;; \  
                                         *) \  
                                                 if [ ${PATCH_DEBUG_TMP} = yes ]; then \                                                  if [ ${PATCH_DEBUG_TMP} = yes ]; then \
                                                         ${ECHO_MSG} "===>   Applying ${OPSYS} patch $$i" ; \                                                          ${ECHO_MSG} "===>   Applying ${OPSYS} patch $$i" ; \
                                                 fi; \                                                  fi; \
                                                 ${PATCH} ${PATCH_ARGS} < $$i; \                                                  ${PATCH} ${PATCH_ARGS} < $$i; \
                                                 ;; \                                          else \
                                 esac; \                                                  ${ECHO_MSG} "===>   Can't find patch matching $$i"; \
                         done; \                                                  if [ -d ${PATCHDIR}/CVS -a "$$i" = \
                 fi; \                                                          "${PATCHDIR}/patch-*" ]; then \
                                                                   ${ECHO_MSG} "===>   Perhaps you forgot the -P flag to cvs co or update?"; \
                                                   fi; \
                                           fi; \
                                           ;; \
                           esac; \
                   done; \
         fi          fi
 .endif  .endif
   
Line 1663 
Line 1671 
         @for file in ${_IGNOREFILES}; do \          @for file in ${_IGNOREFILES}; do \
                 ${ECHO} "MD5 ($$file) = IGNORE" >> ${MD5_FILE}; \                  ${ECHO} "MD5 ($$file) = IGNORE" >> ${MD5_FILE}; \
         done          done
   .endif
   
   .if !target(addsum)
   addsum: fetch
           @${MKDIR} ${FILESDIR}
           @touch ${MD5_FILE}
           @(cd ${DISTDIR}; \
            for file in ${_CKSUMFILES}; do \
                   ${MD5} $$file >> ${MD5_FILE}; \
            done)
           @for file in ${_IGNOREFILES}; do \
                   ${ECHO} "MD5 ($$file) = IGNORE" >> ${MD5_FILE}; \
           done
           @sort -u ${MD5_FILE} >${MD5_FILE}.new
           @${MV} -f ${MD5_FILE}.new ${MD5_FILE}
           @if [ `${SED} -e 's/\=.*$$//' ${MD5_FILE} | uniq -d | wc -l` -ne 0 ]; then \
                   ${ECHO} "Inconsistent checksum in ${MD5_FILE}"; \
           else \
                   ${ECHO} "${MD5_FILE} updated okay, don't forget to remove cruft"; \
           fi
 .endif  .endif
   
 .if !target(checksum)  .if !target(checksum)

Legend:
Removed from v.1.49  
changed lines
  Added in v.1.50