3 ## Written 2006 by Julia Dubenskaya
4 ## for the OpenXPKI project
5 ## (C) Copyright 2006 by The OpenXPKI Project
12 PORT_PATH
="/usr/ports/security"
13 DISTS_PATH
="/usr/ports/distfiles/openxpki"
15 PORT_NAME_SHORT
=`echo ${PORT_NAME_SHORT} | sed -e "s/^${PKGNAME_PREFIX}//"`
16 PORT_NAME
=${PKGNAME_PREFIX}${PORT_NAME_SHORT}
17 TMP
=${HOME}/tmp
/${PORT_NAME_SHORT}
19 if [ ! -d ${myPWD}/${PORT_PATH}/${PORT_NAME} ]; then
20 echo -e "Usage: update-port.sh PORT_NAME. \nPossible values of PORT_NAME:\n$(cd ${myPWD}/${PORT_PATH}/ && ls | grep ${PKGNAME_PREFIX})"
24 if [ -d ${TMP} ]; then
28 cd ${myPWD}/${DISTS_PATH}/
29 TARBALL_NAME
=`find . -iname ${PORT_NAME_SHORT}-${MAJOR_VERSION}.*\.gz | sed -e "s/\.\///"`
30 if [ ${TARBALL_NAME} ]; then
31 echo "New tarball is " ${TARBALL_NAME}
33 echo "No new tarball for the port ${PORT_NAME} was found in"
34 echo "${myPWD}/${DISTS_PATH}/"
35 echo "Port was not updated."
39 echo "========================================================="
40 echo "Building pkg-plist"
41 echo "========================================================="
42 cp ${myPWD}/build-plist.sh ${myPWD}/${PORT_PATH}/${PORT_NAME}/
43 cd ${myPWD}/${PORT_PATH}/${PORT_NAME}/
46 rm ${myPWD}/${PORT_PATH}/${PORT_NAME}/build-plist.sh
48 mv pkg-plist pkg-plist
.0
49 mv Makefile Makefile.bak
51 ${myPWD}/get-final-plist.pl
${PORT_NAME_SHORT}
53 export NOCLEANDEPENDS
="yes"
58 if [ -d ${TMP} ]; then