diff options
author | Maxim Sobolev <sobomax@FreeBSD.org> | 2000-07-04 10:09:52 +0000 |
---|---|---|
committer | Maxim Sobolev <sobomax@FreeBSD.org> | 2000-07-04 10:09:52 +0000 |
commit | 749e254514fa5d06706600897ee7198732bdd69f (patch) | |
tree | 767b5382a26fa678e5f96703e716a2e7c4db3dab /sysutils/ascpu | |
parent | 54f7240973ed1aba62870e7b521b790a2ce6187b (diff) | |
download | ports-749e254514fa5d06706600897ee7198732bdd69f.tar.gz ports-749e254514fa5d06706600897ee7198732bdd69f.zip |
Notes
Diffstat (limited to 'sysutils/ascpu')
-rw-r--r-- | sysutils/ascpu/Makefile | 12 | ||||
-rw-r--r-- | sysutils/ascpu/distinfo | 2 | ||||
-rw-r--r-- | sysutils/ascpu/files/patch-sec01 | 38 |
3 files changed, 28 insertions, 24 deletions
diff --git a/sysutils/ascpu/Makefile b/sysutils/ascpu/Makefile index 1cebbe9eed62..515b58694d59 100644 --- a/sysutils/ascpu/Makefile +++ b/sysutils/ascpu/Makefile @@ -6,19 +6,21 @@ # PORTNAME= ascpu -PORTVERSION= 1.8 +PORTVERSION= 1.9 CATEGORIES= sysutils afterstep -MASTER_SITES= http://bewoner.dma.be/Albert/software/ \ - http://www.tigr.net/afterstep/as-apps/download/ascpu/ \ +MASTER_SITES= http://www.tigr.net/afterstep/as-apps/download/ascpu/ \ ftp://ftp.gpad.ac.ru/pub/FreeBSD/distfiles/ MAINTAINER= dima@Chg.RU -LIB_DEPENDS= Xpm.4:${PORTSDIR}/graphics/xpm +LIB_DEPENDS= Xpm.4:${PORTSDIR}/graphics/xpm \ + jpeg.9:${PORTSDIR}/graphics/jpeg USE_X_PREFIX= yes GNU_CONFIGURE= yes -CONFIGURE_ARGS+= --with-xpm +CONFIGURE_ARGS= --with-xpm +CONFIGURE_ENV= LDFLAGS="-L${LOCALBASE}/lib" +MAKE_ENV= EXTRA_LIBRARIES="-L${LOCALBASE}/lib" MAN1= ascpu.1 diff --git a/sysutils/ascpu/distinfo b/sysutils/ascpu/distinfo index b586ed4dc1a1..0cf8e8059c75 100644 --- a/sysutils/ascpu/distinfo +++ b/sysutils/ascpu/distinfo @@ -1 +1 @@ -MD5 (ascpu-1.8.tar.gz) = ef03840019e210231ae5a24a5efe8c95 +MD5 (ascpu-1.9.tar.gz) = 35d55ec164496ed595ee8d5d34ed4efd diff --git a/sysutils/ascpu/files/patch-sec01 b/sysutils/ascpu/files/patch-sec01 index d54a776f30a4..6f981eb660c6 100644 --- a/sysutils/ascpu/files/patch-sec01 +++ b/sysutils/ascpu/files/patch-sec01 @@ -1,21 +1,23 @@ ---- ascpu_x.c.orig Thu Dec 16 17:45:26 1999 -+++ ascpu_x.c Wed Dec 29 20:47:32 1999 -@@ -6,6 +6,7 @@ - * This software is distributed under GPL. For details see LICENSE file. - */ - -+#include <sys/types.h> - #include <stdio.h> - #include <errno.h> +--- ascpu_x.c.orig Mon Jul 3 21:39:16 2000 ++++ ascpu_x.c Mon Jul 3 21:39:19 2000 +@@ -18,6 +18,7 @@ + #include <nlist.h> #include <fcntl.h> -@@ -585,6 +586,10 @@ + #include <kvm.h> ++#include <sys/types.h> + #endif + + #ifdef __hpux__ +@@ -626,6 +627,12 @@ #ifdef DEBUG - printf("ascpu: system(%s)\n",Command); + printf("ascpu: system(%s)\n",Command); #endif -+ if (setgid(getgid()) != 0) -+ err(1, "Can't drop setgid privileges"); -+ if (setuid(getuid()) != 0) -+ err(1, "Can't drop setuid privileges"); - system( Command ); - } - break; ++ ++ if (setgid(getgid()) != 0) ++ err(1, "Can't drop setgid privileges"); ++ if (setuid(getuid()) != 0) ++ err(1, "Can't drop setuid privileges"); ++ + if( ! Command ) { + return; + } |