summaryrefslogtreecommitdiffstats
path: root/sysutils/xsu
diff options
context:
space:
mode:
authormarcus <marcus@FreeBSD.org>2002-08-28 07:25:11 +0000
committermarcus <marcus@FreeBSD.org>2002-08-28 07:25:11 +0000
commitbba4b1594bf7acc1747640b2220fdea436b2c65f (patch)
tree446a330f4a2a52a3158a9a293b169572d3bf220a /sysutils/xsu
parent58e28ee1f1e03b56c2e875f919586e736d9d3cb0 (diff)
downloadFreeBSD-ports-bba4b1594bf7acc1747640b2220fdea436b2c65f.zip
FreeBSD-ports-bba4b1594bf7acc1747640b2220fdea436b2c65f.tar.gz
Add xsu, a GNOME 1 tool to run commands as root.
PR: 42103 Submitted by: Juan Salaverria <rael@vectorstar.net>
Diffstat (limited to 'sysutils/xsu')
-rw-r--r--sysutils/xsu/Makefile36
-rw-r--r--sysutils/xsu/distinfo1
-rw-r--r--sysutils/xsu/files/patch-configure29
-rw-r--r--sysutils/xsu/files/patch-xsu.desktop10
-rw-r--r--sysutils/xsu/pkg-comment1
-rw-r--r--sysutils/xsu/pkg-descr9
-rw-r--r--sysutils/xsu/pkg-plist13
7 files changed, 99 insertions, 0 deletions
diff --git a/sysutils/xsu/Makefile b/sysutils/xsu/Makefile
new file mode 100644
index 0000000..f60d84b
--- /dev/null
+++ b/sysutils/xsu/Makefile
@@ -0,0 +1,36 @@
+# New ports collection makefile for: xsu
+# Date created: 27 Aug 2002
+# Whom: Juan Salaverria <rael@vectorstar.net>
+#
+# $FreeBSD$
+#
+
+PORTNAME= xsu
+PORTVERSION= 0.2.3
+CATEGORIES= sysutils gnome
+MASTER_SITES= http://xsu.freax.eu.org/files/
+
+MAINTAINER= rael@vectorstar.net
+
+USE_X_PREFIX= yes
+GNU_CONFIGURE= yes
+USE_GNOMENG= yes
+USE_GNOME= gnomeprefix gnomehack gnomelibs
+CONFIGURE_ARGS= --su-pwd-out="Password:"
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
+ LIBS="-L${LOCALBASE}/lib"
+
+MAN8= xsu.8
+
+DOCS= CHANGELOG COPYING INSTALL
+
+post-install:
+ ${INSTALL_DATA} ${WRKSRC}/xsu.desktop \
+ ${PREFIX}/share/gnome/apps/System
+.if !defined(NOPORTDOCS)
+.for f in ${DOCS}
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
+.endfor
+.endif
+
+.include <bsd.port.mk>
diff --git a/sysutils/xsu/distinfo b/sysutils/xsu/distinfo
new file mode 100644
index 0000000..f18e064
--- /dev/null
+++ b/sysutils/xsu/distinfo
@@ -0,0 +1 @@
+MD5 (xsu-0.2.3.tar.gz) = 05f0b370368af99469c868aa865dd352
diff --git a/sysutils/xsu/files/patch-configure b/sysutils/xsu/files/patch-configure
new file mode 100644
index 0000000..e59394e
--- /dev/null
+++ b/sysutils/xsu/files/patch-configure
@@ -0,0 +1,29 @@
+--- configure.orig Thu Mar 21 05:45:50 2002
++++ configure Wed Aug 28 03:20:24 2002
+@@ -20,7 +20,7 @@
+ CPP="cc"
+ gnome_config_prefix=""
+ xsu_location="${prefix}/bin"
+-man_base="${prefix}/share/man"
++man_base="${prefix}/man"
+ doc_path="${prefix}/share/doc"
+ su_pwd_out="Password: "
+ max_su_delay=30000
+@@ -54,7 +54,7 @@
+ -prefix=* | --prefix=*)
+ prefix="$ac_optarg"
+ xsu_location="${prefix}/bin"
+- man_base="${prefix}/share/man"
++ man_base="${prefix}/man"
+ doc_path="${prefix}/share/doc";;
+
+ -su-pwd-out=* | --su-pwd-out=*)
+@@ -384,7 +384,7 @@
+ @echo "- I n s t a l l i n g D o c u m e n t a t i o n ----------"
+ install -d $man_base/man8
+ install -d $doc_path/$name
+- gzip -c9 doc/man/xsu.8 > $man_base/man8/xsu.8.gz
++ \$(INSTALL) -m 644 doc/man/xsu.8 $man_base/man8/xsu.8
+ \$(INSTALL) -m 644 \$(DOCFILES) $doc_path/$name/
+ @echo "- I n s t a l l a t i o n c o m p l e t e ----------------"
+ @echo "Now read the README file"
diff --git a/sysutils/xsu/files/patch-xsu.desktop b/sysutils/xsu/files/patch-xsu.desktop
new file mode 100644
index 0000000..a33553f
--- /dev/null
+++ b/sysutils/xsu/files/patch-xsu.desktop
@@ -0,0 +1,10 @@
+--- xsu.desktop.ori Tue Aug 27 11:19:58 2002
++++ xsu.desktop Tue Aug 27 11:19:43 2002
+@@ -0,0 +1,7 @@
++[Desktop Entry]
++Name=GNOME Xsu
++Comment=A GNOME su interface
++Exec=xsu --message "Please type the command to run,^the username and password to use."
++Icon=
++Terminal=0
++Type=Application
diff --git a/sysutils/xsu/pkg-comment b/sysutils/xsu/pkg-comment
new file mode 100644
index 0000000..19796b1
--- /dev/null
+++ b/sysutils/xsu/pkg-comment
@@ -0,0 +1 @@
+Xsu runs commands as root after prompting for the root password
diff --git a/sysutils/xsu/pkg-descr b/sysutils/xsu/pkg-descr
new file mode 100644
index 0000000..f9e5d77
--- /dev/null
+++ b/sysutils/xsu/pkg-descr
@@ -0,0 +1,9 @@
+xsu Is an interface for the command `su - username -c command` in Gnome.
+When the user executes xsu, he will be prompted for a command, a username
+and a password. If the username and password are correct xsu will execute
+the command as the entered user. So if the username was root, then the
+command will be executed as root.
+
+WWW: http://xsu.freax.eu.org/
+
+Philip Van Hoof <freax@pandora.be>
diff --git a/sysutils/xsu/pkg-plist b/sysutils/xsu/pkg-plist
new file mode 100644
index 0000000..f7f9955
--- /dev/null
+++ b/sysutils/xsu/pkg-plist
@@ -0,0 +1,13 @@
+bin/xsu
+share/gnome/apps/System/xsu.desktop
+%%PORTDOCS%%share/doc/xsu/AUTHORS
+%%PORTDOCS%%share/doc/xsu/CHANGELOG
+%%PORTDOCS%%share/doc/xsu/COPYING
+%%PORTDOCS%%share/doc/xsu/INSTALL
+%%PORTDOCS%%share/doc/xsu/README
+%%PORTDOCS%%share/doc/xsu/xsu_doc.html
+%%PORTDOCS%%share/doc/xsu/xsu_example.jpg
+%%PORTDOCS%%share/doc/xsu/xsu_example2.png
+%%PORTDOCS%%share/doc/xsu/xsu_example3.png
+%%PORTDOCS%%share/doc/xsu/xsu_in_gmenu.jpg
+%%PORTDOCS%%@dirrm share/doc/xsu
OpenPOWER on IntegriCloud