Skip to content

Commit

Permalink
Add mmdb
Browse files Browse the repository at this point in the history
  • Loading branch information
andrii-suse committed Jan 16, 2024
1 parent fde41c8 commit 3592547
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ SHELL=/bin/bash
install:
install -d -m 0755 "${DESTDIR}"/usr/share/environ.d/mc
install -m 0644 port_base.cnf "${DESTDIR}"/usr/share/environ.d/mc/port_base.cnf ;\
install -d -m 0755 "${DESTDIR}"/usr/share/environ.d/mc/data
install -m 0644 t/data/city.mmdb "${DESTDIR}"/usr/share/environ.d/mc/data/city.mmdb ;\
for d in local source; do \
test -d $$d || continue ;\
mkdir -p "${DESTDIR}"/usr/share/environ.d/mc/$$d ;\
Expand All @@ -20,6 +22,6 @@ install:
for dd in $$d/* ; do \
test -L $$dd || continue ;\
l=$$(basename $$dd) ; \
ln -fs "${DESTDIR}"/usr/share/environ.d/$$l/local/ "${DESTDIR}"/usr/share/environ.d/mc/$$d/$$l ; \
( cd "${DESTDIR}"/usr/share/environ.d/mc/$$d; ln -sf ../../$$l/local/ $$l ) ; \
done \
done
5 changes: 4 additions & 1 deletion local/gen_env.sh.m4
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,11 @@ else
echo export TEST_PG='${__dbi//\/pg\//\/db\//}'
fi

mmdb=__workdir/../t/data/city.mmdb
test -f $mmdb || mmdb=/usr/share/environ.d/mc/data/city.mmdb

echo "export MIRRORCACHE_ROOT=__workdir/dt
export MIRRORCACHE_CITY_MMDB=__workdir/../t/data/city.mmdb
export MIRRORCACHE_CITY_MMDB=$mmdb
export MOJO_LISTEN=http://*:__port
export MIRRORCACHE_AUTH_URL=''
export MIRRORCACHE_PERMANENT_JOBS=''
Expand Down

0 comments on commit 3592547

Please sign in to comment.