FreeBSD Bugzilla – Attachment 158987 Details for
Bug 196537
[NEW PORT] sysutils/ktsuss: Desktop independent front-end for su/sudo
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
Updated shell archive that removes "USE_AUTOTOOLS"
ktsuss-v2.shar (text/plain), 5.67 KB, created by
Jordan Irwin
on 2015-07-19 22:51:16 UTC
(
hide
)
Description:
Updated shell archive that removes "USE_AUTOTOOLS"
Filename:
MIME Type:
Creator:
Jordan Irwin
Created:
2015-07-19 22:51:16 UTC
Size:
5.67 KB
patch
obsolete
># This is a shell archive. Save it in a file, remove anything before ># this line, and then unpack it by entering "sh file". Note, it may ># create directories; files and directories will be owned by you and ># have default permissions. ># ># This archive contains: ># ># ktsuss ># ktsuss/files ># ktsuss/files/patch-src_su__backend.c ># ktsuss/files/patch-src_sudo__backend.c ># ktsuss/files/patch-src_ktsuss.c ># ktsuss/pkg-descr ># ktsuss/distinfo ># ktsuss/Makefile ># >echo c - ktsuss >mkdir -p ktsuss > /dev/null 2>&1 >echo c - ktsuss/files >mkdir -p ktsuss/files > /dev/null 2>&1 >echo x - ktsuss/files/patch-src_su__backend.c >sed 's/^X//' >ktsuss/files/patch-src_su__backend.c << '788e383784bb2ec3a624dd5f3e117df8' >X--- src/su_backend.c.orig 2014-03-04 04:32:19 UTC >X+++ src/su_backend.c >X@@ -40,8 +40,16 @@ >X #include <sys/types.h> >X #include <errno.h> >X #include <pwd.h> >X+ >X+#if defined(__FreeBSD__) >X+#include <libutil.h> >X+#include <utmpx.h> >X+#include <sys/signal.h> >X+#else >X #include <pty.h> >X #include <utmp.h> >X+#endif >X+ >X #include <termios.h> >X >X #include "errors.h" >X@@ -151,7 +159,7 @@ int check_password_su(const char *userna >X /* Run the given command as the given user */ >X void run_su(char *username, char *password, char *command) >X { >X- char buf[BUFF_SIZE], *cmd[7] = { SUPATH, username, "-p", "-l", "-c", command, NULL }; >X+ char buf[BUFF_SIZE], *cmd[6] = { SUPATH, username, "-p", "-c", command, NULL }; >X int fdpty = 0, status = 0, tty = 1; >X pid_t pid = 0; >X fd_set rfds; >X@@ -170,7 +178,8 @@ void run_su(char *username, char *passwo >X if (tty) >X tty_raw(STDIN_FILENO); >X >X- while (!waitpid(pid, &status, WNOHANG)) { >X+ while (1) { >X+ waitpid(pid, &status, WNOHANG); >X >X /* Ok, the program needs some interaction, so this will do it fine */ >X tv.tv_sec = 0; >X@@ -182,8 +191,11 @@ void run_su(char *username, char *passwo >X if (select(MAX(fdpty, STDIN_FILENO)+1, &rfds, NULL, NULL, &tv) < 0) err(1, "select()"); >X >X if (FD_ISSET(fdpty, &rfds)) { >X- status = read(fdpty, buf, BUFF_SIZE); >X- write(STDOUT_FILENO, buf, status); >X+ if ((status = read(fdpty, buf, BUFF_SIZE)) > 0) >X+ write(STDOUT_FILENO, buf, status); >X+ else >X+ break; >X+ >X } >X else if (FD_ISSET(STDIN_FILENO, &rfds)) { >X status = read(STDIN_FILENO, buf, BUFF_SIZE); >788e383784bb2ec3a624dd5f3e117df8 >echo x - ktsuss/files/patch-src_sudo__backend.c >sed 's/^X//' >ktsuss/files/patch-src_sudo__backend.c << 'ba24c4b6f56f51ea96c76ba37c8faad9' >X--- src/sudo_backend.c.orig 2014-03-04 04:32:19 UTC >X+++ src/sudo_backend.c >X@@ -40,8 +40,15 @@ >X #include <sys/types.h> >X #include <errno.h> >X #include <pwd.h> >X+ >X+#if defined(__FreeBSD__) >X+#include <libutil.h> >X+#include <utmpx.h> >X+#else >X #include <pty.h> >X #include <utmp.h> >X+#endif >X+ >X #include <termios.h> >X #include <fcntl.h> >X >ba24c4b6f56f51ea96c76ba37c8faad9 >echo x - ktsuss/files/patch-src_ktsuss.c >sed 's/^X//' >ktsuss/files/patch-src_ktsuss.c << '8ddfe1afb24e0b99d96de452f87ac729' >X--- src/ktsuss.c.orig 2014-03-04 04:32:19 UTC >X+++ src/ktsuss.c >X@@ -38,8 +38,15 @@ >X #include <sys/types.h> >X #include <errno.h> >X #include <pwd.h> >X+ >X+#if defined(__FreeBSD__) >X+#include <libutil.h> >X+#include <utmpx.h> >X+#else >X #include <pty.h> >X #include <utmp.h> >X+#endif >X+ >X #include <termios.h> >X #include <glib.h> >X #include <gtk/gtk.h> >8ddfe1afb24e0b99d96de452f87ac729 >echo x - ktsuss/pkg-descr >sed 's/^X//' >ktsuss/pkg-descr << '739bd8a07c05c0b769c3acea67905be9' >Xktsuss stands for "keep the su simple, stupid", and as the name says, >Xis a graphical version (frontend) of su/sudo written in C and GTK+ 2. >XThe idea of the project is to remain simple and bug free. It is an >Xalternative to administration frontends like gtksu and kdesudo. >X >XWWW: https://github.com/nomius/ktsuss >739bd8a07c05c0b769c3acea67905be9 >echo x - ktsuss/distinfo >sed 's/^X//' >ktsuss/distinfo << 'fbd9752561f6bd7842c5f188e7d3b6b7' >XSHA256 (ktsuss-2.1.tar.gz) = 4ee55b2c299a609d4b62b2c428caf63db625646f2aecdf66e6b77d91cce32b79 >XSIZE (ktsuss-2.1.tar.gz) = 302150 >fbd9752561f6bd7842c5f188e7d3b6b7 >echo x - ktsuss/Makefile >sed 's/^X//' >ktsuss/Makefile << '4eca02caf32b2442fbb86ca4f3d0a23f' >X# Created by: Jordan Irwin <antumdeluge@gmail.com> >X# $FreeBSD$ >X >XPORTNAME= ktsuss >XPORTVERSION= 2.1 >XCATEGORIES= sysutils >XMASTER_SITES= https://github.com/${GH_ACCOUNT}/${PORTNAME}/releases/download/${PORTVERSION}/ \ >X http://github.com/${GH_ACCOUNT}/${PORTNAME}/releases/download/${PORTVERSION}/ >X >XMAINTAINER= antumdeluge@gmail.com >XCOMMENT= Desktop independent front-end for su/sudo >X >XLICENSE= BSD3CLAUSE >X >XLIB_DEPENDS= libatk-1.0.so:${PORTSDIR}/accessibility/atk \ >X libcairo.so:${PORTSDIR}/graphics/cairo \ >X libfontconfig.so:${PORTSDIR}/x11-fonts/fontconfig \ >X libfreetype.so:${PORTSDIR}/print/freetype2 \ >X libgdk_pixbuf-2.0.so:${PORTSDIR}/graphics/gdk-pixbuf2 \ >X libintl.so:${PORTSDIR}/devel/gettext-runtime \ >X libgio-2.0.so:${PORTSDIR}/devel/glib20 \ >X libgobject-2.0.so:${PORTSDIR}/devel/glib20 \ >X libglib-2.0.so:${PORTSDIR}/devel/glib20 \ >X libgtk-x11-2.0.so:${PORTSDIR}/x11-toolkits/gtk20 \ >X libgdk-x11-2.0.so:${PORTSDIR}/x11-toolkits/gtk20 \ >X libpangocairo-1.0.so:${PORTSDIR}/x11-toolkits/pango \ >X libpangoft2-1.0.so:${PORTSDIR}/x11-toolkits/pango \ >X libpango-1.0.so:${PORTSDIR}/x11-toolkits/pango >X >XPLIST_FILES= bin/ktsuss \ >X share/pixmaps/ktsuss.png >X >XGH_ACCOUNT= nomius >X >XUSES= autoreconf libtool >XGNU_CONFIGURE= yes >X >XLIBTOOLIZE_ARGS=--copy --force --automake >XAUTOMAKE_ARGS= --add-missing --copy >X >XOPTIONS_DEFINE= SUDO >X >XSUDO_DESC= Use sudo as back-end instead of su (su broken) >X >XOPTIONS_DEFAULT=SUDO >X >X.include <bsd.port.options.mk> >X >X.if ${PORT_OPTIONS:MSUDO} >XRUN_DEPENDS+= sudo:${PORTSDIR}/security/sudo >XCONFIGURE_ARGS+= --enable-sudo=yes >X.endif >X >X.include <bsd.port.mk> >4eca02caf32b2442fbb86ca4f3d0a23f >exit >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 196537
:
151391
|
151394
|
151395
| 158987 |
158988