diff options
author | Steve Wills <swills@FreeBSD.org> | 2012-06-25 01:23:26 +0000 |
---|---|---|
committer | Steve Wills <swills@FreeBSD.org> | 2012-06-25 01:23:26 +0000 |
commit | 2e46b5a1c5e8af0870acbefd845753d594e15a23 (patch) | |
tree | 7138371468e241c2b0632efc6d46366ce5239528 /net/reposado | |
parent | 8933941b314a2b0792b42a685453331480588f38 (diff) | |
download | ports-2e46b5a1c5e8af0870acbefd845753d594e15a23.tar.gz ports-2e46b5a1c5e8af0870acbefd845753d594e15a23.zip |
Notes
Diffstat (limited to 'net/reposado')
-rw-r--r-- | net/reposado/Makefile | 42 | ||||
-rw-r--r-- | net/reposado/distinfo | 2 | ||||
-rw-r--r-- | net/reposado/files/patch-reposadocommon.py | 20 | ||||
-rw-r--r-- | net/reposado/files/patch-setup.py | 11 | ||||
-rw-r--r-- | net/reposado/files/pkg-message.in | 5 | ||||
-rw-r--r-- | net/reposado/pkg-descr | 6 | ||||
-rw-r--r-- | net/reposado/pkg-plist | 18 |
7 files changed, 104 insertions, 0 deletions
diff --git a/net/reposado/Makefile b/net/reposado/Makefile new file mode 100644 index 000000000000..84474f3c42c0 --- /dev/null +++ b/net/reposado/Makefile @@ -0,0 +1,42 @@ +# New ports collection makefile for: reposado +# Date created: 23 Jun 2012 +# Whom: Masaki TAGAWA <masaki@club.kyutech.ac.jp> +# +# $FreeBSD$ +# + +PORTNAME= reposado +PORTVERSION= 0.0.20120620 +CATEGORIES= net +MASTER_SITES= https://nodeload.github.com/wdas/reposado/zipball/${TAG}?dummy=/ +DISTNAME= ${PORTNAME}-${PORTVERSION:S/0.0.//} + +MAINTAINER= masaki@club.kyutech.ac.jp +COMMENT= Tools for replicating the Apple's Software Update Service + +RUN_DEPENDS= curl:${PORTSDIR}/ftp/curl + +LICENSE_FILE= ${WRKSRC}/LICENSE.txt + +USE_PYTHON= 2.6+ +USE_PYDISTUTILS= yes + +TAG= edfdb87 +WRKSRC= ${WRKDIR}/wdas-reposado-${TAG} +SUB_FILES= pkg-message + +post-patch: + @${REINPLACE_CMD} -e "s,%%LOCALBASE%%,${LOCALBASE},g" \ + ${WRKSRC}/code/reposadolib/reposadocommon.py + @${REINPLACE_CMD} -e "s,%%PORTVERSION%%,${PORTVERSION},g" \ + ${WRKSRC}/setup.py + +post-install: +.if !defined(NOPORTDOCS) + @${MKDIR} ${DOCSDIR} + @${INSTALL_DATA} ${WRKSRC}/README.md ${DOCSDIR} &&\ + ${INSTALL_DATA} ${WRKSRC}/docs/* ${DOCSDIR} +.endif + @${CAT} ${PKGMESSAGE} + +.include <bsd.port.mk> diff --git a/net/reposado/distinfo b/net/reposado/distinfo new file mode 100644 index 000000000000..3d80ca85f4d1 --- /dev/null +++ b/net/reposado/distinfo @@ -0,0 +1,2 @@ +SHA256 (reposado-20120620.tar.gz) = 03925fb2d5e8352c75669d0027da13af97c27fd50cccda0712b85d31c57dd84b +SIZE (reposado-20120620.tar.gz) = 57132 diff --git a/net/reposado/files/patch-reposadocommon.py b/net/reposado/files/patch-reposadocommon.py new file mode 100644 index 000000000000..59d38bd802cf --- /dev/null +++ b/net/reposado/files/patch-reposadocommon.py @@ -0,0 +1,20 @@ +--- code/reposadolib/reposadocommon.py.org 2012-06-23 21:35:41.103519893 +0900 ++++ code/reposadolib/reposadocommon.py 2012-06-23 21:43:57.289520798 +0900 +@@ -58,7 +58,7 @@ + + def prefsFilePath(): + '''Returns path to our preferences file.''' +- return os.path.join(get_main_dir(), 'preferences.plist') ++ return os.path.join('%%LOCALBASE%%/etc/', 'preferences.plist') + + + def pref(prefname): +@@ -71,7 +71,7 @@ + 'http://swscan.apple.com/content/catalogs/others/index-lion-snowleopard-leopard.merged-1.sucatalog', + 'http://swscan.apple.com/content/catalogs/others/index-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog'], + 'PreferredLocalizations': ['English', 'en'], +- 'CurlPath': '/usr/bin/curl' ++ 'CurlPath': '%%LOCALBASE%%/bin/curl' + } + try: + prefs = plistlib.readPlist(prefsFilePath()) diff --git a/net/reposado/files/patch-setup.py b/net/reposado/files/patch-setup.py new file mode 100644 index 000000000000..fb0bfa633f82 --- /dev/null +++ b/net/reposado/files/patch-setup.py @@ -0,0 +1,11 @@ +--- setup.py.org 2012-06-22 15:50:45.283520178 +0900 ++++ setup.py 2012-06-22 15:51:13.184520094 +0900 +@@ -41,7 +41,7 @@ + else: + setup( + name = "reposado", +- version = "git", ++ version = "%%PORTVERSION%%", + author = "Greg Neagle", + author_email = "reposado@googlegroups.com", + maintainer = "Brent B", diff --git a/net/reposado/files/pkg-message.in b/net/reposado/files/pkg-message.in new file mode 100644 index 000000000000..f4f125047ac6 --- /dev/null +++ b/net/reposado/files/pkg-message.in @@ -0,0 +1,5 @@ +******************************************************************* +You'll need to perform some steps to make reposado work. +See file named getting_started.txt in %%DOCSDIR%% +for details. +******************************************************************* diff --git a/net/reposado/pkg-descr b/net/reposado/pkg-descr new file mode 100644 index 000000000000..643ce5ea9c5d --- /dev/null +++ b/net/reposado/pkg-descr @@ -0,0 +1,6 @@ +Reposado is a set of tools written in Python that replicate the +key functionality of Mac OS X Server's Software Update Service. +This enables you to host a local Apple Software Update Server +on any hardware and OS of your choice. + +WWW: https://github.com/wdas/reposado diff --git a/net/reposado/pkg-plist b/net/reposado/pkg-plist new file mode 100644 index 000000000000..5494ac6a32e2 --- /dev/null +++ b/net/reposado/pkg-plist @@ -0,0 +1,18 @@ +bin/repo_sync +bin/repoutil +%%PYTHON_SITELIBDIR%%/reposadolib/__init__.py +%%PYTHON_SITELIBDIR%%/reposadolib/__init__.pyc +%%PYTHON_SITELIBDIR%%/reposadolib/__init__.pyo +%%PYTHON_SITELIBDIR%%/reposadolib/reposadocommon.py +%%PYTHON_SITELIBDIR%%/reposadolib/reposadocommon.pyc +%%PYTHON_SITELIBDIR%%/reposadolib/reposadocommon.pyo +@dirrm %%PYTHON_SITELIBDIR%%/reposadolib +%%PORTDOCS%%%%DOCSDIR%%/client_configuration.txt +%%PORTDOCS%%%%DOCSDIR%%/getting_started.txt +%%PORTDOCS%%%%DOCSDIR%%/reference.txt +%%PORTDOCS%%%%DOCSDIR%%/reposado_metadata.txt +%%PORTDOCS%%%%DOCSDIR%%/reposado_operation.txt +%%PORTDOCS%%%%DOCSDIR%%/reposado_preferences.txt +%%PORTDOCS%%%%DOCSDIR%%/reposado_py2exe.txt +%%PORTDOCS%%%%DOCSDIR%%/README.md +%%PORTDOCS%%@dirrm %%DOCSDIR%% |