diff options
author | cy <cy@FreeBSD.org> | 2002-11-05 21:46:25 +0800 |
---|---|---|
committer | cy <cy@FreeBSD.org> | 2002-11-05 21:46:25 +0800 |
commit | 99cf5de0d0300301b995b12d0fe084d6499e22fe (patch) | |
tree | ed9179d11ab0dc758466a43db16a559c51c8f4e8 | |
parent | 20862752cd9187f9977980b38718e42a7573e13e (diff) | |
download | freebsd-ports-gnome-99cf5de0d0300301b995b12d0fe084d6499e22fe.tar.gz freebsd-ports-gnome-99cf5de0d0300301b995b12d0fe084d6499e22fe.tar.zst freebsd-ports-gnome-99cf5de0d0300301b995b12d0fe084d6499e22fe.zip |
Update 0.7 --> 0.9
The aide database was in /var/adm/aide and is now in /var/db/aide. /var/adm
is a SYSV directory that does not exist on FreeBSD.
-rw-r--r-- | security/aide/Makefile | 21 | ||||
-rw-r--r-- | security/aide/distinfo | 2 | ||||
-rw-r--r-- | security/aide/files/aide.conf.freebsd | 4 | ||||
-rw-r--r-- | security/aide/files/patch-aa | 29 | ||||
-rw-r--r-- | security/aide/files/patch-configure | 11 | ||||
-rw-r--r-- | security/aide/files/patch-include::util.h | 9 | ||||
-rw-r--r-- | security/aide/files/patch-src::util.c | 18 | ||||
-rw-r--r-- | security/aide/pkg-message | 4 |
8 files changed, 53 insertions, 45 deletions
diff --git a/security/aide/Makefile b/security/aide/Makefile index 65a0803e6130..cf4f7ee596a5 100644 --- a/security/aide/Makefile +++ b/security/aide/Makefile @@ -6,8 +6,7 @@ # PORTNAME= aide -PORTVERSION= 0.7 -PORTREVISION= 1 +PORTVERSION= 0.9 CATEGORIES= security MASTER_SITES= http://www.cs.tut.fi/~rammer/ \ ftp://ftp.cs.tut.fi/pub/src/gnu/ @@ -20,7 +19,7 @@ USE_BISON= yes GNU_CONFIGURE= yes CONFIGURE_ARGS+=--with-mhash \ --with-zlib \ - --with-config_file=/var/adm/aide/aide.conf + --with-config_file=/var/db/aide/aide.conf CONFIGURE_ENV+= LIBS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}" @@ -29,12 +28,12 @@ MAN5= aide.conf.5 post-install: @${INSTALL_DATA} ${FILESDIR}/aide.conf.freebsd ${PREFIX}/etc/aide.conf.sample - @${MKDIR} /var/adm/aide/databases - @if [ ! -f /var/adm/aide/aide.conf ]; then \ - ${CHOWN} root:wheel /var/adm/aide ; \ - ${CHOWN} root:wheel /var/adm/aide/databases ; \ - ${CHMOD} 0700 /var/adm/aide ; \ - ${CHMOD} 0700 /var/adm/aide/databases ; \ + @${MKDIR} /var/db/aide/databases + @if [ ! -f /var/db/aide/aide.conf ]; then \ + ${CHOWN} root:wheel /var/db/aide ; \ + ${CHOWN} root:wheel /var/db/aide/databases ; \ + ${CHMOD} 0700 /var/db/aide ; \ + ${CHMOD} 0700 /var/db/aide/databases ; \ fi @${ECHO} @${CAT} ${PKGMESSAGE} @@ -44,8 +43,8 @@ post-install: @newfs -u 0 -t 0 -i 196608 -m 0 -T minimum -o space /dev/rfd0c @mount /dev/fd0c /mnt @${CP} ${PREFIX}/bin/aide /mnt/aide - @${CP} -p /var/adm/aide/aide.conf /mnt/aide.conf - @${CP} < /var/adm/aide/databases/aide.db /mnt/aide.db + @${CP} -p /var/db/aide/aide.conf /mnt/aide.conf + @${CP} < /var/db/aide/databases/aide.db /mnt/aide.db @${CHMOD} 555 /mnt/aide @umount /mnt @${ECHO} Do not forget to remove and write-protect the floppy. diff --git a/security/aide/distinfo b/security/aide/distinfo index c1967d98a428..73bce195d4ce 100644 --- a/security/aide/distinfo +++ b/security/aide/distinfo @@ -1 +1 @@ -MD5 (aide-0.7.tar.gz) = 0b2ed9eb3b608a19418800b87f5be848 +MD5 (aide-0.9.tar.gz) = 877b1f515a9e25afda75e06805d687fb diff --git a/security/aide/files/aide.conf.freebsd b/security/aide/files/aide.conf.freebsd index ee4d14b64c37..5cd10fe5a6fe 100644 --- a/security/aide/files/aide.conf.freebsd +++ b/security/aide/files/aide.conf.freebsd @@ -72,8 +72,8 @@ # details.) # -database=file:///var/adm/aide/databases/aide.db -database_out=file:///var/adm/aide/databases/aide.db.new +database=file:///var/db/aide/databases/aide.db +database_out=file:///var/db/aide/databases/aide.db.new # First, root's traditional "home". Note that FreeBSD's root's home (/root) diff --git a/security/aide/files/patch-aa b/security/aide/files/patch-aa deleted file mode 100644 index 4ad347bc404a..000000000000 --- a/security/aide/files/patch-aa +++ /dev/null @@ -1,29 +0,0 @@ ---- src/db_file.c.orig Thu Apr 20 05:44:56 2000 -+++ src/db_file.c Thu Jun 6 16:56:48 2002 -@@ -212,7 +212,7 @@ - if((retval=fork())==0){ - /* The child process */ - close(pipefd[0]); -- conf->db_gzin=gzdopen(fileno(conf->db_in),"rb"); -+ conf->db_gzin=gzdopen(fileno((FILE *)conf->db_in),"rb"); - /* WARNING This causes weird problems. Don't do it. - fclose(conf->db_in); - */ -@@ -447,7 +447,7 @@ - } - - if(tmpstr){ -- retval=fprintf(file,tmpstr); -+ retval=fprintf(file,"%s",tmpstr); - free(tmpstr); - return retval; - }else { -@@ -484,7 +484,7 @@ - - - tmpstr=encode_base64(ptr,strlen(ptr)); -- retval=fprintf(file,tmpstr); -+ retval=fprintf(file,"%s",tmpstr); - free(tmpstr); - free(ptr); - diff --git a/security/aide/files/patch-configure b/security/aide/files/patch-configure new file mode 100644 index 000000000000..01cc535cc2c2 --- /dev/null +++ b/security/aide/files/patch-configure @@ -0,0 +1,11 @@ +--- configure.orig Tue Jun 4 01:31:27 2002 ++++ configure Fri Jul 12 06:13:48 2002 +@@ -2838,7 +2838,7 @@ + EOF + + cat >> confdefs.h <<EOF +-#define AIDE_BLKCNT_TYPE blkcnt_t ++#define AIDE_BLKCNT_TYPE int32_t + EOF + + compoptionstring="${compoptionstring}WITH_LSTAT\\n" diff --git a/security/aide/files/patch-include::util.h b/security/aide/files/patch-include::util.h new file mode 100644 index 000000000000..229ce8bbbed6 --- /dev/null +++ b/security/aide/files/patch-include::util.h @@ -0,0 +1,9 @@ +--- include/util.h.orig Wed May 29 01:04:26 2002 ++++ include/util.h Fri Jul 12 06:17:39 2002 +@@ -57,6 +57,4 @@ + + void init_sighandler(void); + +-char* strnstr(char* haystack,char* needle,int n); +- + #endif diff --git a/security/aide/files/patch-src::util.c b/security/aide/files/patch-src::util.c new file mode 100644 index 000000000000..4a8e6d70efad --- /dev/null +++ b/security/aide/files/patch-src::util.c @@ -0,0 +1,18 @@ +--- src/util.c.orig Wed May 29 01:04:27 2002 ++++ src/util.c Tue Oct 29 04:03:55 2002 +@@ -357,6 +357,7 @@ + } + + ++#if 0 + /* Like strstr but only do search for maximum of n chars. + haystack does not have to be NULL terminated + needle has to be NULL terminated. NULL in needle is not used in compare. +@@ -392,6 +393,7 @@ + /* If we get this far no match was found so we return NULL */ + return NULL; + } ++#endif /* 0 */ + + /* We need these dummy stubs to fool the linker into believing that + we do not need them at link time */ diff --git a/security/aide/pkg-message b/security/aide/pkg-message index f6d510fe8117..bb458031cfde 100644 --- a/security/aide/pkg-message +++ b/security/aide/pkg-message @@ -1,9 +1,9 @@ If you want to finish setting up AIDE, don't forget to create your own aide.conf based on ${PREFIX}/etc/aide.conf.sample and then copy it to -the /var/adm/aide/ directory. You will also need to run the following +the /var/db/aide/ directory. You will also need to run the following commands: - cd /var/adm/aide + cd /var/db/aide aide --init mv databases/aide.db.new databases/aide.db |