aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/asfsm
diff options
context:
space:
mode:
authortaoka <taoka@FreeBSD.org>1999-06-15 03:58:12 +0800
committertaoka <taoka@FreeBSD.org>1999-06-15 03:58:12 +0800
commite72c548d271ca925ec73174e05f90a92ca13aa95 (patch)
treedb22ff95a977b76a4a6a7c9c450927d621e67178 /sysutils/asfsm
parent07a0f01da56483f40d4fdee6bb879515a33ebd64 (diff)
downloadfreebsd-ports-gnome-e72c548d271ca925ec73174e05f90a92ca13aa95.tar.gz
freebsd-ports-gnome-e72c548d271ca925ec73174e05f90a92ca13aa95.tar.zst
freebsd-ports-gnome-e72c548d271ca925ec73174e05f90a92ca13aa95.zip
File-system monitor for the AfterStep window manager.
PR: 12024 Submitted by: jack@germanium.xtalwind.net
Diffstat (limited to 'sysutils/asfsm')
-rw-r--r--sysutils/asfsm/Makefile34
-rw-r--r--sysutils/asfsm/distinfo1
-rw-r--r--sysutils/asfsm/files/patch-aa90
-rw-r--r--sysutils/asfsm/pkg-comment1
-rw-r--r--sysutils/asfsm/pkg-descr2
-rw-r--r--sysutils/asfsm/pkg-plist1
6 files changed, 129 insertions, 0 deletions
diff --git a/sysutils/asfsm/Makefile b/sysutils/asfsm/Makefile
new file mode 100644
index 000000000000..1efc0a9a972e
--- /dev/null
+++ b/sysutils/asfsm/Makefile
@@ -0,0 +1,34 @@
+# New ports collection makefile for: asfsm
+# Version required: asfsm-1.0pre15
+# Date created: 4 June 1999
+# Whom: jack
+#
+# $Id: Makefile,v 1.1.1.1 1999/06/14 19:30:25 taoka Exp $
+
+DISTNAME= asfsm-1.0pre15
+PKGNAME= asfsm-1.0p15
+CATEGORIES= sysutils afterstep
+MASTER_SITES= http://www.tigr.net/afterstep/as-apps/download/asfsm/
+
+MAINTAINER= jack@germnaium.xtalwind.net
+
+LIB_DEPENDS= Xpm.4:${PORTSDIR}/graphics/xpm
+
+USE_X_PREFIX= yes
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS+=--x-includes=${X11BASE}/include/X11
+
+MAN1= asfsm.1
+
+do-install:
+ ${INSTALL_MAN} ${WRKSRC}/asfsm.man ${PREFIX}/man/man1/asfsm.1
+ ${INSTALL_PROGRAM} ${WRKSRC}/asfsm ${PREFIX}/bin
+
+post-install:
+ @${ECHO_MSG} ""
+ @${ECHO_MSG} "If you would like to be able to mount and umount file systems"
+ @${ECHO_MSG} "using asfsm, as root, type \`chmod 4555 ${PREFIX}/bin/asfsm\`"
+ @${ECHO_MSG} "NOTE: This opens a SECURITY HOLE as ALL users will have this ability."
+ @${ECHO_MSG} ""
+
+.include <bsd.port.mk>
diff --git a/sysutils/asfsm/distinfo b/sysutils/asfsm/distinfo
new file mode 100644
index 000000000000..b170010be346
--- /dev/null
+++ b/sysutils/asfsm/distinfo
@@ -0,0 +1 @@
+MD5 (asfsm-1.0pre15.tar.gz) = 2e0956f60bd2c3612066c484b2197089
diff --git a/sysutils/asfsm/files/patch-aa b/sysutils/asfsm/files/patch-aa
new file mode 100644
index 000000000000..9616164a0c39
--- /dev/null
+++ b/sysutils/asfsm/files/patch-aa
@@ -0,0 +1,90 @@
+*** asfsm.c.orig Sun Oct 18 06:02:09 1998
+--- asfsm.c Fri Jun 4 11:10:15 1999
+***************
+*** 98,107 ****
+ int flag=0;
+
+ /* figure out which "df -" command to use */
+! tempfile=popen("df -Bk","r");
+ fscanf(tempfile,"%s",word);
+ if (!strcmp(word,"Filesystem")) {
+! sprintf(dfcommand,"df -Bk");
+ } else {
+ tempfile=popen("df -a","r");
+ fscanf(tempfile,"%s",word);
+--- 98,107 ----
+ int flag=0;
+
+ /* figure out which "df -" command to use */
+! tempfile=popen("df -k","r");
+ fscanf(tempfile,"%s",word);
+ if (!strcmp(word,"Filesystem")) {
+! sprintf(dfcommand,"df -k");
+ } else {
+ tempfile=popen("df -a","r");
+ fscanf(tempfile,"%s",word);
+***************
+*** 135,161 ****
+ }
+ fclose(tempfile);
+
+- /* detect which user mount/unmount command to use */
+- /* by giving umnt a bum parameter (-h) and seeing if it */
+- /* returns anything about an illegal option or if it just says */
+- /* command not found. Different shells have different messages */
+- /* for not finding a command, and which behaves differently too, */
+- /* so this seems a reasonable way to do it. */
+- tempfile=popen("umnt -h > /usr/tmp/testumnt 2> /usr/tmp/testumnt; cat /usr/tmp/testumnt; rm /usr/tmp/testumnt","r");
+- while(!feof(tempfile)) {
+- fscanf(tempfile,"%s",word);
+- if (!strcmp("option",word)) {
+- /* the response must have been
+- umnt: ERROR: Illegal option -- h
+- or something like it, the command exists */
+- sprintf(mountcmd,"mnt ");
+- sprintf(umountcmd,"umnt ");
+- flag=1;
+- break;
+- }
+- }
+- pclose(tempfile);
+-
+ if (flag==0) {
+ /* otherwise, the mount/unmount commands must be used */
+ sprintf(mountcmd,"mount ");
+--- 135,140 ----
+***************
+*** 374,380 ****
+ fs[counter].percent,
+ fs[counter].mountdir);
+ if (strlen(fs[counter].mountdir)>0 && counter<23) {
+! if (atoi(fs[counter].blocks)>0 || showzero==1) {
+ counter++;
+ }
+ } else {
+--- 353,360 ----
+ fs[counter].percent,
+ fs[counter].mountdir);
+ if (strlen(fs[counter].mountdir)>0 && counter<23) {
+! if ((atoi(fs[counter].blocks)>0 || showzero==1) &&
+! (strcmp(fs[counter].mountdir, "/proc"))){
+ counter++;
+ }
+ } else {
+***************
+*** 721,727 ****
+ };
+
+ if (!feof(fstabfile)) {
+! if (buffer[0]!='#') {
+ strcpy(fstab[fstabcounter].filesystem,
+ "");
+ strcpy(fstab[fstabcounter].mountdir,"");
+--- 701,707 ----
+ };
+
+ if (!feof(fstabfile)) {
+! if (buffer[0]!='#' && strncmp(buffer, "proc", 4)) {
+ strcpy(fstab[fstabcounter].filesystem,
+ "");
+ strcpy(fstab[fstabcounter].mountdir,"");
diff --git a/sysutils/asfsm/pkg-comment b/sysutils/asfsm/pkg-comment
new file mode 100644
index 000000000000..849031c0d929
--- /dev/null
+++ b/sysutils/asfsm/pkg-comment
@@ -0,0 +1 @@
+File-system monitor for the AfterStep window manager.
diff --git a/sysutils/asfsm/pkg-descr b/sysutils/asfsm/pkg-descr
new file mode 100644
index 000000000000..4a0e578ea0ca
--- /dev/null
+++ b/sysutils/asfsm/pkg-descr
@@ -0,0 +1,2 @@
+This is a file-system monitor for the AfterStep window manager. It fits nicely
+in the Wharf.
diff --git a/sysutils/asfsm/pkg-plist b/sysutils/asfsm/pkg-plist
new file mode 100644
index 000000000000..0f0f37ca7c42
--- /dev/null
+++ b/sysutils/asfsm/pkg-plist
@@ -0,0 +1 @@
+bin/asfsm