[Midnightbsd-cvs] mports: mports/deskutils: Whip up a quick command line twitter client.
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Wed Sep 24 16:34:18 EDT 2008
Log Message:
-----------
Whip up a quick command line twitter client. This is hosted in the mports tree.
Modified Files:
--------------
mports/deskutils:
Makefile (r1.31 -> r1.32)
Added Files:
-----------
mports/deskutils/twitter:
Makefile (r1.1)
pkg-descr (r1.1)
pkg-plist (r1.1)
mports/deskutils/twitter/files:
twitter.sh (r1.1)
-------------- next part --------------
--- /dev/null
+++ deskutils/twitter/pkg-descr
@@ -0,0 +1,4 @@
+twitter is a command line client for the twitter service
+
+AUTHOR: Lucas Holt
+WWW: http://people.midnightbsd.org/~laffer1
--- /dev/null
+++ deskutils/twitter/pkg-plist
@@ -0,0 +1,2 @@
+ at comment $MidnightBSD: mports/deskutils/twitter/pkg-plist,v 1.1 2008/09/24 20:34:15 laffer1 Exp $
+bin/twitter
--- /dev/null
+++ deskutils/twitter/Makefile
@@ -0,0 +1,24 @@
+# New ports collection makefile for: twitter
+# Date created: 24 Sept 2008
+# Whom: Lucas Holt <luke at midnightbsd.org>
+#
+# $MidnightBSD: mports/deskutils/twitter/Makefile,v 1.1 2008/09/24 20:34:15 laffer1 Exp $
+#
+
+PORTNAME= twitter
+PORTVERSION= 1.0
+CATEGORIES= deskutils
+MASTER_SITES= # none
+DISTFILES= # none
+
+MAINTAINER= luke at midnightbsd.org
+COMMENT= A command line client for posting to twitter
+LICENSE= bsd2
+
+RUN_DEPENDS= curl:${PORTSDIR}/ftp/curl
+NO_BUILD= yes
+
+do-install:
+ ${INSTALL_SCRIPT} ${FILESDIR}/twitter.sh ${PREFIX}/bin/twitter
+
+.include <bsd.port.mk>
Index: Makefile
===================================================================
RCS file: /home/cvs/mports/deskutils/Makefile,v
retrieving revision 1.31
retrieving revision 1.32
diff -L deskutils/Makefile -L deskutils/Makefile -u -r1.31 -r1.32
--- deskutils/Makefile
+++ deskutils/Makefile
@@ -38,6 +38,7 @@
SUBDIR += preferences.app
SUBDIR += toolbox
SUBDIR += toolboxkit
+ SUBDIR += twitter
SUBDIR += xpad
SUBDIR += xpostit
--- /dev/null
+++ deskutils/twitter/files/twitter.sh
@@ -0,0 +1,18 @@
+#!/bin/sh
+# $MidnightBSD: mports/deskutils/twitter/files/twitter.sh,v 1.1 2008/09/24 20:34:16 laffer1 Exp $
+# Author: Lucas Holt
+# License: BSD 2 clause
+
+USERNAME=$1
+PASSWORD=$2
+
+if [ $# -lt 2 ]; then
+ echo "usage: $0 username password message";
+ exit;
+fi
+if [ $# -gt 3 ]; then
+ echo "usage: $0 username password message";
+ exit;
+fi
+ `which curl` --basic --user "${USERNAME}:${PASSWORD}" --data-ascii "status=`echo $3|tr ' ' '+'`" "http://twitter.com/statuses/update.json" -o /dev/null
+ echo Message Sent!
More information about the Midnightbsd-cvs
mailing list