From e006e5d88d67884680441eaf50f125f45e20312f Mon Sep 17 00:00:00 2001 From: Boris Nagaev Date: Wed, 2 Sep 2015 11:09:48 +0300 Subject: db: add update script --- src/db.mk | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/db.mk b/src/db.mk index 338693a..bd472d2 100644 --- a/src/db.mk +++ b/src/db.mk @@ -11,8 +11,9 @@ $(PKG)_URL := http://download.oracle.com/berkeley-db/$($(PKG)_FILE) $(PKG)_DEPS := gcc define $(PKG)_UPDATE - echo 'TODO: Updates for package db need to be fixed.' >&2; - echo $(db_VERSION) + $(WGET) -q -O- 'http://www.oracle.com/technetwork/database/database-technologies/berkeleydb/downloads/index.html' | \ + $(SED) -n 's,.*/db-\([0-9\.]\+\)\.tar.gz.*,\1,p' | \ + head -1 endef define $(PKG)_BUILD -- cgit v0.12