ports/107174: New port: net/mugshot: The official client for Mugshot network

Ashish Shukla wahjava at gmail.com
Sun Dec 24 20:10:15 UTC 2006


>Number:         107174
>Category:       ports
>Synopsis:       New port: net/mugshot: The official client for Mugshot network
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Dec 24 20:10:14 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Ashish Shukla
>Release:        6.1-RELEASE
>Organization:
N/A
>Environment:
FreeBSD chateau-d-lf 6.1-RELEASE FreeBSD 6.1-RELEASE #0: Sun May 7 04:15:57 UTC 2006 root at bloom.cse.buffalo.edu:/usr/obj/usr/src/sys/SMP amd64
>Description:
This is the port of mugshot, an official client for Mugshot network. Mugshot makes it easy to show off what you're doing online and keep track of what your friends are up to.
>How-To-Repeat:

>Fix:
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	mugshot/
#	mugshot/distinfo
#	mugshot/Makefile
#	mugshot/pkg-plist
#	mugshot/pkg-install
#	mugshot/pkg-descr
#	mugshot/files
#	mugshot/files/patch-firefox-update.sh
#
echo c - mugshot/
mkdir -p mugshot/ > /dev/null 2>&1
echo x - mugshot/distinfo
sed 's/^X//' >mugshot/distinfo << 'END-of-mugshot/distinfo'
XMD5 (mugshot-1.1.30.tar.gz) = 282102620ec24371baa69011eb3d4e9a
XSHA256 (mugshot-1.1.30.tar.gz) = 8faafba70464046e765661f09ef3759a996154d9e6f8ba59c90545262f009398
XSIZE (mugshot-1.1.30.tar.gz) = 738440
END-of-mugshot/distinfo
echo x - mugshot/Makefile
sed 's/^X//' >mugshot/Makefile << 'END-of-mugshot/Makefile'
X# New ports collection makefile for: mugshot
X# Date Created:                      24 December 2006
X# Whom:                              wahjava
X#
X# $FreeBSD$
X#
X
XPORTNAME=      mugshot
XPORTVERSION=   1.1.30
XCATEGORIES=    net
XMASTER_SITES=  http://download.mugshot.org/client/sources/linux/
X
XMAINTAINER=    wahjava at gmail.com
XCOMMENT=       The official client for Mugshot network
X
XBUILD_DEPENDS= ${PKGCONFIG_LOCAL_BASE}/dbus-1.pc:${PORTSDIR}/devel/dbus:install \
X	       ${PKGCONFIG_LOCAL_BASE}/dbus-glib-1.pc:${PORTSDIR}/devel/dbus-glib:install \
X	       ${PKGCONFIG_LOCAL_BASE}/loudmouth-1.0.pc:${PORTSDIR}/net-im/loudmouth:install \
X	       ${PKGCONFIG_LOCAL_BASE}/cairo.pc:${PORTSDIR}/graphics/cairo:install \
X	       ${PKGCONFIG_LOCAL_BASE}/libcurl.pc:${PORTSDIR}/ftp/curl:install \
X	       ${LOCALBASE}/include/firefox/caps/nsIScriptSecurityManager.h:${PORTSDIR}/www/firefox:install \
X	       ${LOCALBASE}/lib/firefox/xpidl:${PORTSDIR}/www/firefox:install \
X	       ${X11BASE}/include/X11/extensions/scrnsaver.h:${PORTSDIR}/x11/xorg-libraries:install
X
XLIB_DEPENDS=   jpeg.9:${PORTSDIR}/graphics/jpeg:install \
X	       Xss.1:${PORTSDIR}/x11/xorg-libraries:install
X
XUSE_GNOME=     gnomehack gconf2 glib20 gtk20 pango
XGNU_CONFIGURE= yes
XUSE_GMAKE=     yes
X
XGCONF_SCHEMAS= mugshot-uri-handler.schemas
XINSTALLS_ICONS= yes
X
XUSE_LDCONFIG= yes
XLDCONFIG_DIRS= %%PREFIX%%/lib/mugshot/firefox/components
X
XPKGCONFIG_LOCAL_BASE= ${LOCALBASE}/libdata/pkgconfig
XPKGCONFIG_X11_BASE= ${X11BASE}/libdata/pkgconfig
X
X.include <bsd.port.pre.mk>
X
XCONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" LDFLAGS="-L${LOCALBASE}/lib"
XCONFIGURE_ARGS= "--with-gecko-idl=${FIREFOX_IDL_PATH}" \
X		"--with-gecko-headers=${LOCALBASE}/include/firefox" \
X		"--with-xpidl=${LOCALBASE}/lib/firefox/xpidl"
X
Xpost-patch:
XFIREFOX_IDL_PATH!= for i in ${LOCALBASE}/share/idl/firefox-*; do [ -e $$i/nsIURI.idl ] && ${ECHO} $$i && exit 0; done
XBUILD_DEPENDS+=${FIREFOX_IDL_PATH}/nsIURI.idl:${PORTSDIR}/www/firefox:install
X
Xpost-install:
X	@${SED} -i "" -e "s|%%PREFIX%%|${PREFIX}|" ${PREFIX}/share/mugshot/firefox-update.sh
X	@${PREFIX}/share/mugshot/firefox-update.sh install
X
X.include <bsd.port.post.mk>
END-of-mugshot/Makefile
echo x - mugshot/pkg-plist
sed 's/^X//' >mugshot/pkg-plist << 'END-of-mugshot/pkg-plist'
X at unexec killall mugshot
Xbin/mugshot
Xbin/mugshot-uri-handler
Xlib/mugshot/firefox/components/hippoIExtension.xpt
Xlib/mugshot/firefox/components/hippoIControl.xpt
Xlib/mugshot/firefox/components/hippoIControlListener.xpt
Xlib/mugshot/firefox/components/libhippofirefox.so
Xlib/mugshot/firefox/components/libhippofirefox.la
Xlib/mugshot/firefox/components/libhippofirefox.a
Xlib/mugshot/firefox/chrome/content/overlay.js
Xlib/mugshot/firefox/chrome/content/overlay.xul
Xlib/mugshot/firefox/chrome/locale/en-US/overlay.dtd
Xlib/mugshot/firefox/chrome/skin/linkswarm16x16.png
Xlib/mugshot/firefox/chrome/skin/linkswarm24x24.png
Xlib/mugshot/firefox/chrome/skin/mugshot32x32.png
Xlib/mugshot/firefox/chrome/skin/toolbar.css
Xlib/mugshot/firefox/chrome.manifest
Xlib/mugshot/firefox/install.rdf
Xlib/mugshot/firefox/defaults/preferences/prefs.js
Xshare/autostart/mugshot.desktop
X at unexec %%PREFIX%%/share/mugshot/firefox-update.sh remove
Xshare/mugshot/firefox-update.sh
Xshare/mugshot/version
Xshare/icons/hicolor/128x128/apps/mugshot.png
Xshare/icons/hicolor/32x32/apps/mugshot.gif
Xshare/icons/hicolor/48x48/apps/mugshot.gif
Xshare/icons/hicolor/16x16/apps/mugshot.png
Xshare/icons/hicolor/16x16/apps/mugshot_note_on.png
Xshare/icons/hicolor/16x16/apps/mugshot_note_off.png
Xshare/icons/hicolor/22x22/apps/mugshot_notification.png
Xshare/icons/hicolor/22x22/apps/mugshot_notification_disabled.png
Xshare/icons/hicolor/22x22/apps/mugshot_swarm_1.png
Xshare/icons/hicolor/22x22/apps/mugshot_swarm_2.png
Xshare/icons/hicolor/22x22/apps/mugshot_swarm_3.png
Xshare/icons/hicolor/22x22/apps/mugshot_swarm_4.png
Xshare/icons/hicolor/22x22/apps/mugshot_swarm_5.png
Xshare/icons/hicolor/24x24/apps/mugshot.gif
X at dirrm lib/mugshot/firefox/components
X at dirrm lib/mugshot/firefox/chrome/content
X at dirrm lib/mugshot/firefox/chrome/locale/en-US
X at dirrm lib/mugshot/firefox/chrome/locale
X at dirrm lib/mugshot/firefox/chrome/skin
X at dirrm lib/mugshot/firefox/chrome
X at dirrm lib/mugshot/firefox/defaults/preferences
X at dirrm lib/mugshot/firefox/defaults
X at dirrm lib/mugshot/firefox
X at dirrm lib/mugshot
X at dirrm share/mugshot
END-of-mugshot/pkg-plist
echo x - mugshot/pkg-install
sed 's/^X//' >mugshot/pkg-install << 'END-of-mugshot/pkg-install'
X#!/bin/sh
X
XFFUPDATE=${PKG_PREFIX}/share/mugshot/firefox-update.sh
X
Xcase $2 in
XPOST-INSTALL)
X	${FFUPDATE} install
X	;;
XPRE-DEINSTALL)
X	killall mugshot
X	${FFUPDATE} remove
X	;;
Xesac
END-of-mugshot/pkg-install
echo x - mugshot/pkg-descr
sed 's/^X//' >mugshot/pkg-descr << 'END-of-mugshot/pkg-descr'
XThis is the port of mugshot, an official client for
XMugshot network. Mugshot makes it easy to show off
Xwhat you're doing online and keep track of what
Xyour friends are up to.
X
XWWW: http://www.mugshot.org/
X
X- Ashish Shukla
Xwahjava at gmail.com
END-of-mugshot/pkg-descr
echo c - mugshot/files
mkdir -p mugshot/files > /dev/null 2>&1
echo x - mugshot/files/patch-firefox-update.sh
sed 's/^X//' >mugshot/files/patch-firefox-update.sh << 'END-of-mugshot/files/patch-firefox-update.sh'
X--- firefox-update.sh.orig	Sun Dec 24 22:31:37 2006
X+++ firefox-update.sh	Sun Dec 24 22:34:38 2006
X@@ -6,7 +6,7 @@
X # Firefox is installed into versioned directories in /usr/lib[64]/firefox
X #
X if [ "$1" = "install" ] ; then
X-    for libdir in /usr/lib /usr/lib64 ; do
X+	libdir=%%PREFIX%%/lib
X 	# Add symlinks to any firefox directory that looks like it is part of a
X 	# currently installed package
X 	for d in $libdir/firefox* ; do
X@@ -19,9 +19,8 @@
X 		ln -s $target $link
X 	    fi
X 	done
X-    done
X elif [ "$1" = "remove" ] ; then
X-    for libdir in /usr/lib /usr/lib64 ; do
X+	libdir=%%PREFIX%%/lib
X 	# Remove any symlinks we've created into any firefox directory
X 	for d in $libdir/firefox* ; do
X 	    if [ d = "$libdir/firefox*" ] ; then
X@@ -32,7 +31,6 @@
X 		rm $link
X 	    fi
X 	done
X-     done
X else
X     echo "Usage firefox-update.sh [install/remove]"
X fi
END-of-mugshot/files/patch-firefox-update.sh
exit


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list