Date: Fri, 4 Jun 1999 17:05:40 -0400 (EDT) From: jack@germanium.xtalwind.net To: FreeBSD-gnats-submit@freebsd.org Subject: ports/12024: New port of asfsm-1.0pre15 Afterstep file system monitor Message-ID: <199906042105.RAA48487@germanium.xtalwind.net>
next in thread | raw e-mail | index | archive | help
>Number: 12024 >Category: ports >Synopsis: New port of asfsm-1.0pre15 Afterstep file system monitor >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Fri Jun 4 14:10:00 PDT 1999 >Closed-Date: >Last-Modified: >Originator: >Release: FreeBSD 3.2-STABLE i386 >Organization: >Environment: >Description: Port fo asfsm-1.0pre15 a dockable Afterstep file system monitor >How-To-Repeat: >Fix: # 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: # # /usr/ports/sysutils/asfsm # /usr/ports/sysutils/asfsm/Makefile # /usr/ports/sysutils/asfsm/files # /usr/ports/sysutils/asfsm/files/md5 # /usr/ports/sysutils/asfsm/patches # /usr/ports/sysutils/asfsm/patches/patch-aa # /usr/ports/sysutils/asfsm/pkg # /usr/ports/sysutils/asfsm/pkg/PLIST # /usr/ports/sysutils/asfsm/pkg/COMMENT # /usr/ports/sysutils/asfsm/pkg/DESCR # echo c - /usr/ports/sysutils/asfsm mkdir -p /usr/ports/sysutils/asfsm > /dev/null 2>&1 echo x - /usr/ports/sysutils/asfsm/Makefile sed 's/^X//' >/usr/ports/sysutils/asfsm/Makefile << 'END-of-/usr/ports/sysutils/asfsm/Makefile' X# New ports collection makefile for: asfsm X# Version required: asfsm-1.0pre15 X# Date created: 4 June 1999 X# Whom: jack X# X XDISTNAME= asfsm-1.0pre15 XPKGNAME= asfsm-1.0p15 XCATEGORIES= sysutils afterstep XMASTER_SITES= http://www.tigr.net/afterstep/as-apps/download/asfsm/ X XMAINTAINER= jack@germnaium.xtalwind.net X XLIB_DEPENDS= Xpm.4:${PORTSDIR}/graphics/xpm X XUSE_X_PREFIX= yes XGNU_CONFIGURE= yes XCONFIGURE_ARGS+= --x-includes=${X11BASE}/include/X11 X XMAN1= asfsm.1 X Xdo-install: X ${INSTALL_MAN} ${WRKSRC}/asfsm.man ${PREFIX}/man/man1/asfsm.1 X ${INSTALL_PROGRAM} ${WRKSRC}/asfsm ${PREFIX}/bin X Xpost-install: X @${ECHO_MSG} "" X @${ECHO_MSG} "If you would like to be able to mount and umount file systems" X @${ECHO_MSG} "using asfsm, as root, type \`chmod 4555 ${PREFIX}/bin/asfsm\`" X @${ECHO_MSG} "NOTE: This opens a SECURITY HOLE as ALL users will have this ability." X @${ECHO_MSG} "" X X.include <bsd.port.mk> END-of-/usr/ports/sysutils/asfsm/Makefile echo c - /usr/ports/sysutils/asfsm/files mkdir -p /usr/ports/sysutils/asfsm/files > /dev/null 2>&1 echo x - /usr/ports/sysutils/asfsm/files/md5 sed 's/^X//' >/usr/ports/sysutils/asfsm/files/md5 << 'END-of-/usr/ports/sysutils/asfsm/files/md5' XMD5 (asfsm-1.0pre15.tar.gz) = 2e0956f60bd2c3612066c484b2197089 END-of-/usr/ports/sysutils/asfsm/files/md5 echo c - /usr/ports/sysutils/asfsm/patches mkdir -p /usr/ports/sysutils/asfsm/patches > /dev/null 2>&1 echo x - /usr/ports/sysutils/asfsm/patches/patch-aa sed 's/^X//' >/usr/ports/sysutils/asfsm/patches/patch-aa << 'END-of-/usr/ports/sysutils/asfsm/patches/patch-aa' X*** asfsm.c.orig Sun Oct 18 06:02:09 1998 X--- asfsm.c Fri Jun 4 11:10:15 1999 X*************** X*** 98,107 **** X int flag=0; X X /* figure out which "df -" command to use */ X! tempfile=popen("df -Bk","r"); X fscanf(tempfile,"%s",word); X if (!strcmp(word,"Filesystem")) { X! sprintf(dfcommand,"df -Bk"); X } else { X tempfile=popen("df -a","r"); X fscanf(tempfile,"%s",word); X--- 98,107 ---- X int flag=0; X X /* figure out which "df -" command to use */ X! tempfile=popen("df -k","r"); X fscanf(tempfile,"%s",word); X if (!strcmp(word,"Filesystem")) { X! sprintf(dfcommand,"df -k"); X } else { X tempfile=popen("df -a","r"); X fscanf(tempfile,"%s",word); X*************** X*** 135,161 **** X } X fclose(tempfile); X X- /* detect which user mount/unmount command to use */ X- /* by giving umnt a bum parameter (-h) and seeing if it */ X- /* returns anything about an illegal option or if it just says */ X- /* command not found. Different shells have different messages */ X- /* for not finding a command, and which behaves differently too, */ X- /* so this seems a reasonable way to do it. */ X- tempfile=popen("umnt -h > /usr/tmp/testumnt 2> /usr/tmp/testumnt; cat /usr/tmp/testumnt; rm /usr/tmp/testumnt","r"); X- while(!feof(tempfile)) { X- fscanf(tempfile,"%s",word); X- if (!strcmp("option",word)) { X- /* the response must have been X- umnt: ERROR: Illegal option -- h X- or something like it, the command exists */ X- sprintf(mountcmd,"mnt "); X- sprintf(umountcmd,"umnt "); X- flag=1; X- break; X- } X- } X- pclose(tempfile); X- X if (flag==0) { X /* otherwise, the mount/unmount commands must be used */ X sprintf(mountcmd,"mount "); X--- 135,140 ---- X*************** X*** 374,380 **** X fs[counter].percent, X fs[counter].mountdir); X if (strlen(fs[counter].mountdir)>0 && counter<23) { X! if (atoi(fs[counter].blocks)>0 || showzero==1) { X counter++; X } X } else { X--- 353,360 ---- X fs[counter].percent, X fs[counter].mountdir); X if (strlen(fs[counter].mountdir)>0 && counter<23) { X! if ((atoi(fs[counter].blocks)>0 || showzero==1) && X! (strcmp(fs[counter].mountdir, "/proc"))){ X counter++; X } X } else { X*************** X*** 721,727 **** X }; X X if (!feof(fstabfile)) { X! if (buffer[0]!='#') { X strcpy(fstab[fstabcounter].filesystem, X ""); X strcpy(fstab[fstabcounter].mountdir,""); X--- 701,707 ---- X }; X X if (!feof(fstabfile)) { X! if (buffer[0]!='#' && strncmp(buffer, "proc", 4)) { X strcpy(fstab[fstabcounter].filesystem, X ""); X strcpy(fstab[fstabcounter].mountdir,""); END-of-/usr/ports/sysutils/asfsm/patches/patch-aa echo c - /usr/ports/sysutils/asfsm/pkg mkdir -p /usr/ports/sysutils/asfsm/pkg > /dev/null 2>&1 echo x - /usr/ports/sysutils/asfsm/pkg/PLIST sed 's/^X//' >/usr/ports/sysutils/asfsm/pkg/PLIST << 'END-of-/usr/ports/sysutils/asfsm/pkg/PLIST' Xbin/asfsm END-of-/usr/ports/sysutils/asfsm/pkg/PLIST echo x - /usr/ports/sysutils/asfsm/pkg/COMMENT sed 's/^X//' >/usr/ports/sysutils/asfsm/pkg/COMMENT << 'END-of-/usr/ports/sysutils/asfsm/pkg/COMMENT' XFile-system monitor for the AfterStep window manager. END-of-/usr/ports/sysutils/asfsm/pkg/COMMENT echo x - /usr/ports/sysutils/asfsm/pkg/DESCR sed 's/^X//' >/usr/ports/sysutils/asfsm/pkg/DESCR << 'END-of-/usr/ports/sysutils/asfsm/pkg/DESCR' XThis is a file-system monitor for the AfterStep window manager. It fits nicely Xin the Wharf. END-of-/usr/ports/sysutils/asfsm/pkg/DESCR exit >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199906042105.RAA48487>