summaryrefslogtreecommitdiff
path: root/sysutils/portupgrade-devel
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/portupgrade-devel')
-rw-r--r--sysutils/portupgrade-devel/Makefile32
-rw-r--r--sysutils/portupgrade-devel/distinfo1
-rw-r--r--sysutils/portupgrade-devel/pkg-comment1
-rw-r--r--sysutils/portupgrade-devel/pkg-descr23
-rw-r--r--sysutils/portupgrade-devel/pkg-plist12
5 files changed, 69 insertions, 0 deletions
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