[Lunar-commits] CVS: moonbase/devel/db CONFIGURE, NONE, 1.1 DEPENDS, NONE, 1.1 POST_INSTALL, NONE, 1.1 BUILD, 1.2, 1.3 DETAILS, 1.5, 1.6 PRE_BUILD, 1.2, NONE

Moritz Heiber moe at lunar-linux.org
Mon Jan 24 19:58:02 UTC 2005


Update of /var/cvs/lunar/moonbase/devel/db
In directory espresso.foo-projects.org:/tmp/cvs-serv5069/devel/db

Modified Files:
	BUILD DETAILS 
Added Files:
	CONFIGURE DEPENDS POST_INSTALL 
Removed Files:
	PRE_BUILD 
Log Message:
This is the big db rehaul. Some migration code (meh!) ..
but since we haven't got the 'is_at_latest_version'
function yet it is necessary (/me nudges sofar)

* Changed the db module to 4.x (going to remove db4 later)
  and made sure nothing breaks incase db 3.x had been 
  installed before. Turned any db4 dependency into a db dependency
  (All of them have been tested and approved to work with db 4.x)
* Tiny crimson and gift-cvs sneaking in behind your backs.


--- NEW FILE: CONFIGURE ---
if ! grep -q "CONFIG_JAVA="  $MODULE_CONFIG; then
  if query "Enable java support?" n  ; then
    if ! module_installed j2sdk; then
      lin j2sdk
    fi
    echo 'OPTS="$OPTS --enable-java"' > $MODULE_CONFIG
    CONFIG_JAVA=y
  else
    CONFIG_JAVA=n
  fi
  echo "CONFIG_JAVA=$CONFIG_JAVA" >> $MODULE_CONFIG
fi


--- NEW FILE: DEPENDS ---
optional_depends  "tcl"                                \
                  "--with-tcl=/usr/lib"                \
                  ""                                   \
                  "to build the tcl api"              


--- NEW FILE: POST_INSTALL ---
# Migration code sucks

if [ $OLD_DB ]; then
  for mod in apache apache-mod_ssl bsddb3 dctc \
	     drac exim gnome-libs heimdal latex2html \
	     perl php php5 rpm wvstreams xemacs \
	     bdb-ruby cyrus-sasl openldap postfix straw subversion; do
    if module_installed $mod; then
      lin -c $mod;
    fi;
  done;
fi

Index: BUILD
===================================================================
RCS file: /var/cvs/lunar/moonbase/devel/db/BUILD,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- BUILD	27 Dec 2004 18:27:48 -0000	1.2
+++ BUILD	24 Jan 2005 19:58:00 -0000	1.3
@@ -1,19 +1,18 @@
 (
+  if [ `lvu installed db | cut -d. -f1` == "3" ]; then
+    OLD_DB="y"
+  fi
 
   cd  build_unix &&
   ../dist/configure  --prefix=/usr       \
                      --build=$BUILD      \
                      --enable-dynamic    \
                      --enable-compat185  \
-                     --enable-cxx        &&
-
-#                    --enable-java       \
+                     --enable-cxx        \
+		     $OPTS		 &&
 
-  default_make                           &&
-  mkdir -p $DOCUMENT_DIRECTORY/db        &&
-  cp -a /usr/docs $DOCUMENT_DIRECTORY/db &&
-  rm -rf   /usr/docs                     &&
-  rm -f    /usr/include/db3              &&
-  ln -s  . /usr/include/db3
+  sedit "s:LIBSO_LIBS=:LIBSO_LIBS= -pthread :" Makefile       &&
+  sedit  's/$(prefix)\/docs/\/usr\/share\/doc\/db/' Makefile  &&
+  default_make
 
 ) > $C_FIFO 2>&1

Index: DETAILS
===================================================================
RCS file: /var/cvs/lunar/moonbase/devel/db/DETAILS,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- DETAILS	6 Oct 2004 09:15:58 -0000	1.5
+++ DETAILS	24 Jan 2005 19:58:00 -0000	1.6
@@ -1,16 +1,13 @@
-           MODULE=db
-         VERSION=3.3.11
+          MODULE=db
+         VERSION=4.3.27
           SOURCE=$MODULE-$VERSION.tar.gz
-         SOURCE2=patch.3.3.11.1
-         SOURCE3=patch.3.3.11.2
-   SOURCE_URL[0]=ftp://sleepycat1.inetu.net/releases/
-   SOURCE_URL[1]=http://lunar-linux.org/lunar/mirrors/
-  SOURCE2_URL[0]=http://www.sleepycat.com/update/3.3.11/
-  SOURCE3_URL[0]=http://www.sleepycat.com/update/3.3.11/
-        WEB_SITE=http://www.sleepycat.com
-         ENTERED=20010922
-         UPDATED=20010922
+      SOURCE_URL=ftp://sleepycat1.inetu.net/releases/
+      SOURCE_VFY=sha1:8fddfe98d5ff7fcdb3fe9e23bb361d8f20a35941
+        WEB_SITE=http://www.sleepycat.com/
+         ENTERED=20020318
+         UPDATED=20050124
            SHORT="Berkley DB provides database support."
+
 cat << EOF
 Berkeley DB is a programmatic toolkit that provides fast, reliable,
 scalable, and mission-critical database support in software ranging from

--- PRE_BUILD DELETED ---



More information about the Lunar-commits mailing list