From baede620142ecbf5e10b7c3c8d10727d2d59dcd7 Mon Sep 17 00:00:00 2001 From: miwi Date: Fri, 23 Mar 2007 19:43:53 +0000 Subject: Serve a robots.txt file from Trac. Mostly useful to tracd users, but works on anything. Just put the data you want in the wiki page RobotsTxt. WWW: http://trac-hacks.org/wiki/RobotsTxtPlugin --- www/Makefile | 1 + www/trac-robotstxt/Makefile | 37 +++++++++++++++++++++++++++++++++++++ www/trac-robotstxt/distinfo | 3 +++ www/trac-robotstxt/pkg-descr | 4 ++++ www/trac-robotstxt/pkg-plist | 3 +++ 5 files changed, 48 insertions(+) create mode 100644 www/trac-robotstxt/Makefile create mode 100644 www/trac-robotstxt/distinfo create mode 100644 www/trac-robotstxt/pkg-descr create mode 100644 www/trac-robotstxt/pkg-plist diff --git a/www/Makefile b/www/Makefile index e8e2a10e53c0..ca9af6a37a83 100644 --- a/www/Makefile +++ b/www/Makefile @@ -1112,6 +1112,7 @@ SUBDIR += trac-nav SUBDIR += trac-pagetopdf SUBDIR += trac-privatetickets + SUBDIR += trac-robotstxt SUBDIR += trac-tags SUBDIR += trac-webadmin SUBDIR += trac-wikinotification diff --git a/www/trac-robotstxt/Makefile b/www/trac-robotstxt/Makefile new file mode 100644 index 000000000000..f23e43dfc781 --- /dev/null +++ b/www/trac-robotstxt/Makefile @@ -0,0 +1,37 @@ +# New ports collection makefile for: trac-robotxt +# Date created: 03. 23, 2007 +# Whom: Martin Wilke +# +# $FreeBSD$ +# + +PORTNAME= robotxt +PORTVERSION= 1.0.1 +CATEGORIES= www devel python +MASTER_SITES= http://freebsd.unixfreunde.de/sources/trac/ +PKGNAMEPREFIX= trac- +DISTNAME= TracRobotsTxt-${PORTVERSION} + +MAINTAINER= miwi@FreeBSD.org +COMMENT= Allows simple management of a robots.txt. + +BUILD_DEPENDS= ${EASY_INSTALL_CMD}:${PORTSDIR}/devel/py-setuptools +RUN_DEPENDS= ${EASY_INSTALL_CMD}:${PORTSDIR}/devel/py-setuptools \ + tracd:${PORTSDIR}/www/trac + +USE_PYTHON= yes +USE_PYDISTUTILS= yes + +EASY_INSTALL_CMD?= easy_install-${PYTHON_VER} + +PYDISTUTILS_BUILD_TARGET= bdist_egg +PYDISTUTILS_INSTALL_TARGET= easy_install +PYDISTUTILS_INSTALLARGS= -O 1 -N -S ${PYTHON_SITELIBDIR} ${WRKSRC}/dist/${TRACROBO_EGG} + +TRACROBO_EGG= TracRobotsTxt-${PORTVERSION}-py${PYTHON_VER}.egg + +PLIST_SUB+= EASY_INSTALL_CMD=${EASY_INSTALL_CMD} \ + TRACROBO_EGG=${TRACROBO_EGG} \ + TRACROBO_EGG_VER="TracROBO==${PORTVERSION}" + +.include diff --git a/www/trac-robotstxt/distinfo b/www/trac-robotstxt/distinfo new file mode 100644 index 000000000000..638f4fb35572 --- /dev/null +++ b/www/trac-robotstxt/distinfo @@ -0,0 +1,3 @@ +MD5 (TracRobotsTxt-1.0.1.tar.gz) = 10129a399bf771f4778f06dbd0ce8634 +SHA256 (TracRobotsTxt-1.0.1.tar.gz) = 78509402045cc60d38a0ef630ebdda46a69449be0d08e5807588367d6be289b9 +SIZE (TracRobotsTxt-1.0.1.tar.gz) = 1555 diff --git a/www/trac-robotstxt/pkg-descr b/www/trac-robotstxt/pkg-descr new file mode 100644 index 000000000000..1d3f0ecd9385 --- /dev/null +++ b/www/trac-robotstxt/pkg-descr @@ -0,0 +1,4 @@ +Serve a robots.txt file from Trac. Mostly useful to tracd users, +but works on anything. Just put the data you want in the wiki page RobotsTxt. + +WWW: http://trac-hacks.org/wiki/RobotsTxtPlugin diff --git a/www/trac-robotstxt/pkg-plist b/www/trac-robotstxt/pkg-plist new file mode 100644 index 000000000000..2708963e692d --- /dev/null +++ b/www/trac-robotstxt/pkg-plist @@ -0,0 +1,3 @@ +@unexec %%EASY_INSTALL_CMD%% -q -m -S %D/%%PYTHON_SITELIBDIR%% %%TRACROBO_EGG_VER%% +%%PYTHON_SITELIBDIR%%/%%TRACROBO_EGG%% +@exec %%EASY_INSTALL_CMD%% -q -N -S %D/%%PYTHON_SITELIBDIR%% %%TRACROBO_EGG_VER%% -- cgit