Index: head/ports-mgmt/pkg_jail/Makefile =================================================================== --- head/ports-mgmt/pkg_jail/Makefile (revision 466024) +++ head/ports-mgmt/pkg_jail/Makefile (revision 466025) @@ -1,41 +1,42 @@ # $FreeBSD$ PORTNAME= pkg_jail PORTVERSION= 2.0 +PORTREVISION= 1 CATEGORIES= ports-mgmt MASTER_SITES= # empty DISTFILES= # empty MAINTAINER= dinoex@FreeBSD.org COMMENT= Manage your own package jail LICENSE= BSD3CLAUSE NO_BUILD= yes NO_ARCH= yes PLIST_FILES= bin/pkg_jail bin/pkg_update \ man/man1/pkg_jail.1.gz man/man1/pkg_update.1.gz PORTDOCS= README.txt LMAN1= pkg_jail.1 pkg_update.1 OPTIONS_DEFINE= DOCS do-install: ${INSTALL_SCRIPT} ${FILESDIR}/pkg_jail ${FILESDIR}/pkg_update \ ${STAGEDIR}${PREFIX}/bin/ .for i in ${LMAN1} ${INSTALL_MAN} ${FILESDIR}/${i} ${STAGEDIR}${PREFIX}/man/man1/ .endfor do-install-DOCS-on: ${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${FILESDIR}/README.txt ${STAGEDIR}${DOCSDIR}/ install-ports: -${MKDIR} ${PORTSDIR}/local/update/data ${LN} -s ${FILESDIR}/README.txt ${PORTSDIR}/local/update/ ${LN} -s ${FILESDIR}/pkg_update ${PORTSDIR}/local/update/ ${LN} -s ${FILESDIR}/pkg_jail ${PORTSDIR}/local/update/ .include Index: head/ports-mgmt/pkg_jail/files/pkg_jail.1 =================================================================== --- head/ports-mgmt/pkg_jail/files/pkg_jail.1 (revision 466024) +++ head/ports-mgmt/pkg_jail/files/pkg_jail.1 (revision 466025) @@ -1,84 +1,84 @@ -.\" $Id$ +.\" $Id: pkg_jail.1,v 1.1 2018/03/31 06:51:36 cvs Exp $ .TH PKG_JAIL 1 "April 2010" "FreeBSD" "User Manuals" .SH NAME pkg_jail \- Easy handling of a jail for package-builds. .SH SYNOPSIS .TP .B pkg_jail [command] .SH DESCRIPTION .B pkg_jail is a script to handle an clean jail for package-builds. .SH ARGUMENTS .TP .B init Creates or updates a clean jail with "installworld" and populate /etc inside the jail. You need to have a sucessful "buildword" made in /usr/src before this. .TP .B start Start the jail as a guest server. You should have setup sshd inside the jail to login and maintain it with this option. .TP .B shell Start the jail and give a shell back. You can build packages now. .TP .B list Show processes running in the jail. You need to have /proc mounted (readonly) in the host. .TP .B stop Kill processes running in the jail. You need to have /proc mounted (readonly) in the host. .TP .B restart Same as "stop" and "start" .SH "IMPLEMENTATION NOTES" .TP .B /proc /proc will be mounted readonly via procfs inside the jail. .TP .B /usr/src if /usr/src/Makefile does not exists inside the jail, /usr/src will be mounted readonly via nullfs from the the host into the jail. .TP .B pkg_jail_hostname The hostname of the jail. .TP .B pkg_jail_short A short name for the jail. .TP .B pkg_jail_ip The ip-address for the jail. .TP .B pkg_jail_dir The new root for the jail. .TP .B pkg_jail_rule The rulset number the script uses for the devfs inside the jail. .SH RETURN VALUES undefined. .SH "FILES" The variables can be set in /etc/rc.conf or in $PREFIX/etc/pkg_jail.conf. .SH "EXAMPLES" .B Setting up the Jail Directory Tree .P Install all Files with the following comands on the host: .IP cd /usr/src && make buildworld .br pkg_jail init .TP .B Creating a Package .P Change to your management directory and execute pkg_upgrade: .IP cd /usr/ports/local/update .br sh pkg_update make-packages devel/gmake .SH "SEE ALSO" .TP .B pkg_update(1) The tool to create packages inside the jail. .SH "HISTORY" http://www.dinoex.net/training/package.html .SH "AUTHOR" Dirk Meyer, dinoex@FreeBSD.org Index: head/ports-mgmt/pkg_jail/files/pkg_update.1 =================================================================== --- head/ports-mgmt/pkg_jail/files/pkg_update.1 (revision 466024) +++ head/ports-mgmt/pkg_jail/files/pkg_update.1 (revision 466025) @@ -1,165 +1,155 @@ -.\" $Id$ -.TH PKG_UPDATE 1 "April 2010" "FreeBSD" "User Manuals" +.\" $Id: pkg_update.1,v 2.0 2018/03/31 06:54:50 cvs Exp $ +.TH PKG_UPDATE 1 "April 2017" "FreeBSD" "User Manuals" .SH NAME pkg_update \- Easy handling of jailed packages builds. .SH SYNOPSIS .TP .B pkg_update [command] ... .SH DESCRIPTION .B pkg_update is a script to handle an clean jail for package-builds. .SH ARGUMENTS .TP .B update-ports Start "make update" for the ports tree. .TP +.B update-pkg +Force rebuild of pkg tools. +.TP +.B repo +Force rebuild of pkg repo. +.TP .B make-packages Builds a port and its dependencies in a clean /usr/local. You should not run this on a server with configuration. Existing packages are used. Extra files in "${PREFIX}" are detected and reported. The default list of ports is "data/make-packages.${hostname}" .TP .B clean-distfiles Checks all distinfo files and moves the disfiles not found to "/usr/ports/distfiles/Old/". .TP .B merge-distfiles Copy all disfiles found that do not yet exist on the master directory "/media/ports/distfiles/". .TP .B clean-packages Find obsolete packages and move them out of the way. .TP .B pkg_update clean-openssl-packages Find packages that use openssl and move them out of the way .TP .B full-update-jail Do full update cycle: 1. "update-ports" to update the ports tree 2. "clean-packages" to keep only good packages 3. remove all old error logs 4. "make-packages" to rebuild missing packages .TP .B full-update-jail retry Skip "update-ports" and procced as above. .TP .B fetch-distfiles Fetch distfiles for list of ports. .TP .B fetch-recursive-distfiles Fetch distfiles for list of ports and their dependecies. .TP -.B show-extra-files -List files in portsdir that are not updated by cvsup -.TP -.B dependency-update -Try to fix as much dependecy problens in installed ports. -.TP .B fix-moved-ports Check installed packages for moved ports. Then register the new dir in the old installed package. .TP .B add-packages Build a missing port and its missing dpendencies /usr/local is not deleted, on success the port is installed. Existing packages will be used. .TP .B list-installed-ports List all installed ports. .TP .B show-version-list List installed packages that are not in correct version. .TP .B show-packages List build packages or report missing for each port recorded in "data/install-packages.${hostname}". .TP .B check-installed-ports Compare the list of installed ports with the list recorded in data/install-packages.${hostname}". .TP .B show-missing-packages Warn if no package is found for each port recorded in "data/install-packages.${hostname}" .TP .B show-missing-installed List build packages or report missing for each port installed on this host. .TP .B check-update 1. check-installed-ports 2. show-missing-packages 3. show-missing-installed .TP .B clean Clean all cached information. .TP .B make-version-list Make new list of packages that are not in correct version. .TP .B make-deinstall-list Make new list of ports that are not in correct version and create a script "deinstall.${hostname}" to deinstall all the old ports and the dependend ports in order. .TP .B check-reinstall For each package deleted by "make-deinstall-list" warn if no new package is found. .TP .B reinstall For each package deleted by "make-deinstall-list" try to install the new package if it exists. .TP .B install-packages For each port recorded in "data/install-packages.${hostname}" try to to install the new package if it exists. .TP .B show-missing-reinstall For each port recorded from "make-deinstall-list" warn if no new package is found. -.TP -.B make-easy-update -Try to generate the ordered sequence of pkg_deinstall -and pkg_add commands to update your old packages. -.TP -.B replace-package -Overwrite the installed package with a new one and -register dependencies and dependant packages. -Warning: Don't do this when the ABI of the this -package or the ABI of its dependencies has changed. .TP .B clean-reinstall For each port recorded from "make-deinstall-list", keep only the ports that have no package installed. .TP .B deinstall-packages For each port recorded in "data/install-packages.${hostname}" try to to deinstall the installed port. .SH "IMPLEMENTATION NOTES" This script uses only /bin/sh and it does not need an INDEX file. .SH RETURN VALUES undefined. .SH "FILES" .TP .B /usr/ports/local/update/data/ Default location for configuration and varaible data. .TP .B /usr/ports/local/update/log-${hostname} Default location for logsfiles. .TP .B /media/ports/distfiles/ Optional location lor a central hostng of distfiles. .SH "EXAMPLES" .B pkg_update full-update-jail clean-distfiles .SH "SEE ALSO" .TP .B pkg_jail(1) The tool to create and run the jail. .SH "HISTORY" http://www.dinoex.net/training/package.html .TP http://www.dinoex.net/training/package2.html .SH "AUTHOR" Dirk Meyer, dinoex@FreeBSD.org