Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
portsnap will be removed from the base from 14.0-RELEASE onwards. To facilitate usage of portsnap from 14.0-RELEASE onwards extract portsnap from base and create seperate port. Portsnap is a system for securely updating the ports tree by distributing signed compressed snapshots. This is the client half of that system; it downloads compressed snapshots into /usr/local/portsnap ("portsnap fetch") and uses those to extract a ports tree into /usr/ports ("portsnap extract") or update an existing tree ("portsnap update"). In addition to operating entirely over HTTP, portsnap can use under a tenth of the bandwidth required by CVSup if a copy of the ports tree is being updated every few days. Approved by: portmgr
- Loading branch information
Showing
12 changed files
with
1,039 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
PORTNAME= portsnap | ||
PORTVERSION= 1.1 | ||
PORTREVISION= 1 | ||
CATEGORIES= ports-mgmt net | ||
MASTER_SITES= http://www.daemonology.net/portsnap/ | ||
|
||
MAINTAINER= bofh@FreBSD.org | ||
COMMENT= Provides secure snapshots of the ports directory | ||
WWW= http://www.daemonology.net/portsnap/ | ||
|
||
LICENSE= BSD2CLAUSE | ||
|
||
SUB_FILES= pkg-message | ||
|
||
PLIST_FILES= "@sample etc/portsnap.conf.sample" \ | ||
libexec/make_index \ | ||
sbin/portsnap \ | ||
man/man5/portsnap.conf.5.gz \ | ||
man/man8/portsnap.8.gz | ||
|
||
.include <bsd.port.pre.mk> | ||
|
||
.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1500000 | ||
IGNORE= portsnap is in base systems but will be removed from 14.0-RELEASE | ||
.endif | ||
|
||
post-patch: | ||
${REINPLACE_CMD} -e "s,%%PREFIX%%,${PREFIX},g" \ | ||
${WRKSRC}/portsnap \ | ||
${WRKSRC}/portsnap.conf.5 \ | ||
${WRKSRC}/portsnap.8 | ||
|
||
do-install: | ||
${INSTALL_SCRIPT} ${WRKSRC}/portsnap ${STAGEDIR}/${PREFIX}/sbin | ||
${INSTALL_PROGRAM} ${WRKSRC}/make_index ${STAGEDIR}/${PREFIX}/libexec | ||
${INSTALL_MAN} ${WRKSRC}/portsnap.conf.5 ${STAGEDIR}/${PREFIX}/man/man5/ | ||
${INSTALL_MAN} ${WRKSRC}/portsnap.8 ${STAGEDIR}/${PREFIX}/man/man8/ | ||
${INSTALL_DATA} ${WRKSRC}/portsnap.conf \ | ||
${STAGEDIR}/${PREFIX}/etc/portsnap.conf.sample | ||
|
||
.include <bsd.port.post.mk> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
TIMESTAMP = 1681052114 | ||
SHA256 (portsnap-1.1.tar.gz) = 08bf6db8738d5c4fe757737d97366e7e899a6d0cfb244a46055f97f4b116b36c | ||
SIZE (portsnap-1.1.tar.gz) = 20875 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- Makefile.orig 2023-04-09 15:24:50 UTC | ||
+++ Makefile | ||
@@ -1,8 +1,6 @@ | ||
-all: make_index phttpget | ||
+all: make_index | ||
|
||
make_index: make_index.c | ||
- | ||
-phttpget: phttpget.c | ||
|
||
install: | ||
install -m 555 portsnap /usr/local/sbin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- make_index.c.orig 2023-04-09 15:19:46 UTC | ||
+++ make_index.c | ||
@@ -1,4 +1,6 @@ | ||
/*- | ||
+ * SPDX-License-Identifier: BSD-2-Clause-FreeBSD | ||
+ * | ||
* Copyright 2005 Colin Percival | ||
* All rights reserved | ||
* | ||
@@ -25,7 +27,7 @@ | ||
*/ | ||
|
||
#include <sys/cdefs.h> | ||
-__FBSDID("$FreeBSD: src/usr.sbin/portsnap/make_index/make_index.c,v 1.5 2005/12/01 22:14:44 cperciva Exp $"); | ||
+__FBSDID("$FreeBSD$"); | ||
|
||
#include <err.h> | ||
#include <stdio.h> |
Oops, something went wrong.