Change in osmo-hlr[master]: sql/Makefile: Create empty /var/lib/osmocom directory at install time

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Harald Welte gerrit-no-reply at lists.osmocom.org
Mon Jul 2 17:05:33 UTC 2018


Harald Welte has submitted this change and it was merged. ( https://gerrit.osmocom.org/9831 )

Change subject: sql/Makefile: Create empty /var/lib/osmocom directory at install time
......................................................................

sql/Makefile: Create empty /var/lib/osmocom directory at install time

Otherwise osmo-hlr is unable to start correctly.

Change-Id: I1233fc9b3dc685561f79a34e1c32c459dc1aa685
---
M debian/osmo-hlr.install
M sql/Makefile.am
2 files changed, 8 insertions(+), 0 deletions(-)

Approvals:
  Jenkins Builder: Verified
  Harald Welte: Looks good to me, approved



diff --git a/debian/osmo-hlr.install b/debian/osmo-hlr.install
index 825e65c..7991522 100644
--- a/debian/osmo-hlr.install
+++ b/debian/osmo-hlr.install
@@ -3,3 +3,4 @@
 /usr/share/doc/osmo-hlr/sql/hlr.sql
 /usr/share/doc/osmo-hlr/sql/hlr_data.sql
 /usr/share/doc/osmo-hlr/examples/osmo-hlr.cfg
+/var/lib/osmocom
diff --git a/sql/Makefile.am b/sql/Makefile.am
index 75be70e..e84943b 100644
--- a/sql/Makefile.am
+++ b/sql/Makefile.am
@@ -5,3 +5,10 @@
 
 sqldir = $(docdir)/sql
 sql_DATA = $(srcdir)/hlr.sql $(srcdir)/hlr_data.sql
+
+
+install-data-local:
+	$(MKDIR_P) $(DESTDIR)$(localstatedir)/lib/osmocom
+
+uninstall-hook:
+	rm -rf $(DESTDIR)$(localstatedir)/lib/osmocom

-- 
To view, visit https://gerrit.osmocom.org/9831
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-hlr
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I1233fc9b3dc685561f79a34e1c32c459dc1aa685
Gerrit-Change-Number: 9831
Gerrit-PatchSet: 1
Gerrit-Owner: Pau Espin Pedrol <pespin at sysmocom.de>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20180702/22d6a0e5/attachment.htm>


More information about the gerrit-log mailing list