diff options
author | Akinori MUSHA <knu@FreeBSD.org> | 2001-03-17 23:06:40 +0000 |
---|---|---|
committer | Akinori MUSHA <knu@FreeBSD.org> | 2001-03-17 23:06:40 +0000 |
commit | 230a5071f6e458ce51c1e8cb86e06788fdd647ff (patch) | |
tree | cec3fb75c77cbd8a95d6901f615497d8a699085e /sysutils | |
parent | 8a66426a42730f121a42d37f61ae990fa2ca752e (diff) | |
download | ports-230a5071f6e458ce51c1e8cb86e06788fdd647ff.tar.gz ports-230a5071f6e458ce51c1e8cb86e06788fdd647ff.zip |
Notes
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/Makefile | 1 | ||||
-rw-r--r-- | sysutils/portupgrade-devel/Makefile | 32 | ||||
-rw-r--r-- | sysutils/portupgrade-devel/distinfo | 1 | ||||
-rw-r--r-- | sysutils/portupgrade-devel/pkg-comment | 1 | ||||
-rw-r--r-- | sysutils/portupgrade-devel/pkg-descr | 23 | ||||
-rw-r--r-- | sysutils/portupgrade-devel/pkg-plist | 12 | ||||
-rw-r--r-- | sysutils/portupgrade/Makefile | 32 | ||||
-rw-r--r-- | sysutils/portupgrade/distinfo | 1 | ||||
-rw-r--r-- | sysutils/portupgrade/pkg-comment | 1 | ||||
-rw-r--r-- | sysutils/portupgrade/pkg-descr | 23 | ||||
-rw-r--r-- | sysutils/portupgrade/pkg-plist | 12 |
11 files changed, 139 insertions, 0 deletions
diff --git a/sysutils/Makefile b/sysutils/Makefile index 0c42f4635884..6ed85b3b42b6 100644 --- a/sysutils/Makefile +++ b/sysutils/Makefile @@ -88,6 +88,7 @@ SUBDIR += p5-Unix-Syslog SUBDIR += pib SUBDIR += pkg_remove + SUBDIR += portupgrade SUBDIR += prips SUBDIR += procmap SUBDIR += pslist diff --git a/sysutils/portupgrade-devel/Makefile b/sysutils/portupgrade-devel/Makefile new file mode 100644 index 000000000000..4ffbae362aff --- /dev/null +++ b/sysutils/portupgrade-devel/Makefile @@ -0,0 +1,32 @@ +# New ports collection makefile for: portupgrade +# Date created: 18 March 2001 +# Whom: Akinori MUSHA aka knu <knu@idaemons.org> +# +# $FreeBSD$ +# + +PORTNAME= portupgrade +PORTVERSION= 1.14 +CATEGORIES= sysutils +MASTER_SITES= ${MASTER_SITE_LOCAL} +MASTER_SITE_SUBDIR= knu +DISTNAME= pkgtools-20010318 + +MAINTAINER= knu@FreeBSD.org + +RUN_DEPENDS= ${RUBY_SITELIBDIR}/optparse.rb:${PORTSDIR}/devel/ruby-optparse + +USE_RUBY= yes + +NO_BUILD= yes + +do-install: + cd ${WRKSRC} && ${RUBY} install.rb + ${MKDIR} ${PREFIX}/share/zsh/site-functions + ${INSTALL_DATA} ${WRKSRC}/misc/zsh/* ${PREFIX}/share/zsh/site-functions/ +.if !defined(NOPORTDOCS) + ${MKDIR} ${PREFIX}/share/doc/${PORTNAME} + ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/${PORTNAME}/ +.endif + +.include <bsd.port.mk> diff --git a/sysutils/portupgrade-devel/distinfo b/sysutils/portupgrade-devel/distinfo new file mode 100644 index 000000000000..0387e80f0d82 --- /dev/null +++ b/sysutils/portupgrade-devel/distinfo @@ -0,0 +1 @@ +MD5 (pkgtools-20010318.tar.gz) = 521197d6b16ef8f55482c1d819979d41 diff --git a/sysutils/portupgrade-devel/pkg-comment b/sysutils/portupgrade-devel/pkg-comment new file mode 100644 index 000000000000..9b81313fd42f --- /dev/null +++ b/sysutils/portupgrade-devel/pkg-comment @@ -0,0 +1 @@ +A tool to upgrade installed packages with ports diff --git a/sysutils/portupgrade-devel/pkg-descr b/sysutils/portupgrade-devel/pkg-descr new file mode 100644 index 000000000000..10d2151606f8 --- /dev/null +++ b/sysutils/portupgrade-devel/pkg-descr @@ -0,0 +1,23 @@ +Portupgrade is a tool to upgrade installed packages with ports. + +It upgrades ports without reinstalling dependent packages by directly +modifying the package info recorded in the files under /var/db/pkg. + +The procedures it takes is shown as follows: + + 1. Build the corresponding port of the given package + + 2. Fix the dependency info of the ones which depends on the given + package + + 3. Save the +REQUIRED_BY list of the given package + + 4. Uninstall the given package forcibly if -u is specified + + 5. Install the port + + 6. Restore the +REQUIRED_BY list + +The usage can be shown by running it without arguments or with a -h. + +Author: Akinori MUSHA <knu@FreeBSD.org> diff --git a/sysutils/portupgrade-devel/pkg-plist b/sysutils/portupgrade-devel/pkg-plist new file mode 100644 index 000000000000..8423e512f464 --- /dev/null +++ b/sysutils/portupgrade-devel/pkg-plist @@ -0,0 +1,12 @@ +sbin/portupgrade +%%RUBY_SITELIBDIR%%/pkg.rb +%%RUBY_SITELIBDIR%%/pkgdb.rb +%%RUBY_SITELIBDIR%%/pkginfo.rb +%%RUBY_SITELIBDIR%%/pkgversion.rb +%%RUBY_SITELIBDIR%%/portinfo.rb +%%RUBY_SITELIBDIR%%/ports.rb +%%RUBY_SITELIBDIR%%/portsdb.rb +share/zsh/site-functions/_portupgrade +@unexec if [ ! -x %D/bin/zsh ]; then rmdir -p %D/share/zsh/site-functions; fi +%%PORTDOCS%%share/doc/portupgrade/README +%%PORTDOCS%%@dirrm share/doc/portupgrade diff --git a/sysutils/portupgrade/Makefile b/sysutils/portupgrade/Makefile new file mode 100644 index 000000000000..4ffbae362aff --- /dev/null +++ b/sysutils/portupgrade/Makefile @@ -0,0 +1,32 @@ +# New ports collection makefile for: portupgrade +# Date created: 18 March 2001 +# Whom: Akinori MUSHA aka knu <knu@idaemons.org> +# +# $FreeBSD$ +# + +PORTNAME= portupgrade +PORTVERSION= 1.14 +CATEGORIES= sysutils +MASTER_SITES= ${MASTER_SITE_LOCAL} +MASTER_SITE_SUBDIR= knu +DISTNAME= pkgtools-20010318 + +MAINTAINER= knu@FreeBSD.org + +RUN_DEPENDS= ${RUBY_SITELIBDIR}/optparse.rb:${PORTSDIR}/devel/ruby-optparse + +USE_RUBY= yes + +NO_BUILD= yes + +do-install: + cd ${WRKSRC} && ${RUBY} install.rb + ${MKDIR} ${PREFIX}/share/zsh/site-functions + ${INSTALL_DATA} ${WRKSRC}/misc/zsh/* ${PREFIX}/share/zsh/site-functions/ +.if !defined(NOPORTDOCS) + ${MKDIR} ${PREFIX}/share/doc/${PORTNAME} + ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/${PORTNAME}/ +.endif + +.include <bsd.port.mk> diff --git a/sysutils/portupgrade/distinfo b/sysutils/portupgrade/distinfo new file mode 100644 index 000000000000..0387e80f0d82 --- /dev/null +++ b/sysutils/portupgrade/distinfo @@ -0,0 +1 @@ +MD5 (pkgtools-20010318.tar.gz) = 521197d6b16ef8f55482c1d819979d41 diff --git a/sysutils/portupgrade/pkg-comment b/sysutils/portupgrade/pkg-comment new file mode 100644 index 000000000000..9b81313fd42f --- /dev/null +++ b/sysutils/portupgrade/pkg-comment @@ -0,0 +1 @@ +A tool to upgrade installed packages with ports diff --git a/sysutils/portupgrade/pkg-descr b/sysutils/portupgrade/pkg-descr new file mode 100644 index 000000000000..10d2151606f8 --- /dev/null +++ b/sysutils/portupgrade/pkg-descr @@ -0,0 +1,23 @@ +Portupgrade is a tool to upgrade installed packages with ports. + +It upgrades ports without reinstalling dependent packages by directly +modifying the package info recorded in the files under /var/db/pkg. + +The procedures it takes is shown as follows: + + 1. Build the corresponding port of the given package + + 2. Fix the dependency info of the ones which depends on the given + package + + 3. Save the +REQUIRED_BY list of the given package + + 4. Uninstall the given package forcibly if -u is specified + + 5. Install the port + + 6. Restore the +REQUIRED_BY list + +The usage can be shown by running it without arguments or with a -h. + +Author: Akinori MUSHA <knu@FreeBSD.org> diff --git a/sysutils/portupgrade/pkg-plist b/sysutils/portupgrade/pkg-plist new file mode 100644 index 000000000000..8423e512f464 --- /dev/null +++ b/sysutils/portupgrade/pkg-plist @@ -0,0 +1,12 @@ +sbin/portupgrade +%%RUBY_SITELIBDIR%%/pkg.rb +%%RUBY_SITELIBDIR%%/pkgdb.rb +%%RUBY_SITELIBDIR%%/pkginfo.rb +%%RUBY_SITELIBDIR%%/pkgversion.rb +%%RUBY_SITELIBDIR%%/portinfo.rb +%%RUBY_SITELIBDIR%%/ports.rb +%%RUBY_SITELIBDIR%%/portsdb.rb +share/zsh/site-functions/_portupgrade +@unexec if [ ! -x %D/bin/zsh ]; then rmdir -p %D/share/zsh/site-functions; fi +%%PORTDOCS%%share/doc/portupgrade/README +%%PORTDOCS%%@dirrm share/doc/portupgrade |