Skip to content

Commit

Permalink
virtuoso: A little clean up here. We don't use init.d anymore so gett…
Browse files Browse the repository at this point in the history
…ing rid of that.

Adding a PRE_BUILD and adjusting the BUILD accordingly.
  • Loading branch information
stumbles committed Sep 13, 2014
1 parent 95333a7 commit adc366b
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 182 deletions.
15 changes: 1 addition & 14 deletions sql/virtuoso/BUILD
@@ -1,17 +1,4 @@

sedit "s:AM_CONFIG_HEADER:AC_CONFIG_HEADER:" configure.in &&
autoreconf -i &&

sedit "s:\(test \"\${with_editline+set\}\" = set\):\1 -a \"\${with_editline}\" != no": configure &&

sedit "s:iodbcext.h:libiodbc/iodbcext.h:g" libsrc/Wi/odbcinc.h &&
sedit "s:iodbcinst.h:libiodbc/iodbcinst.h:g" libsrc/Wi/odbcinc.h &&

if [ -f /var/lib/virtuoso/db/virtuoso.lck ] ; then
/etc/init.d/virtuosod stop
fi &&

OPTS+=" --without-debug --with-pthreads --program-transform-name='s/isql*/vt-isql/' \
--with-iodbc" &&
OPTS+=" --without-debug --with-pthreads --program-transform-name='s/isql*/vt-isql/'" &&

default_build
2 changes: 1 addition & 1 deletion sql/virtuoso/DEPENDS
@@ -1,4 +1,4 @@
depends libiodbc
#depends libiodbc

#Leaving perl commented out. Make failes if this is enabled.
#optional_depends perl "--enable-perl" "--disable-perl" "for perl hosting support"
Expand Down
6 changes: 3 additions & 3 deletions sql/virtuoso/POST_INSTALL
@@ -1,9 +1,9 @@
if [ ! -f /var/lib/virtuoso/db/virtuoso.ini ]
then cp /var/lib/virtuoso/db/virtuoso.ini.sample /var/lib/virtuoso/db/virtuoso.ini
fi
fi &&

if [ -f /var/lib/virtuoso/db/virtuoso.db ]
then
printf "${PROBLEM_COLOR}Point a broswer to http://localhost:8890/index.html and change the default passwords for users: \n
dba (passwd dba) and dav (passwd dav). \n" "${DEFAULT_COLOR}"
message "${PROBLEM_COLOR}Point a broswer to http://localhost:8890/index.html and change the default passwords for users: \n
dba (passwd dba) and dav (passwd dav). \n ${DEFAULT_COLOR}"
fi
14 changes: 14 additions & 0 deletions sql/virtuoso/PRE_BUILD
@@ -0,0 +1,14 @@
default_pre_build &&

sedit "s:AM_CONFIG_HEADER:AC_CONFIG_HEADER:" configure.in &&
mv configure.in configure.ac &&
autoreconf -i &&

sedit "s:\(test \"\${with_editline+set\}\" = set\):\1 -a \"\${with_editline}\" != no": configure &&

sedit "s:iodbcext.h:libiodbc/iodbcext.h:g" libsrc/Wi/odbcinc.h &&
sedit "s:iodbcinst.h:libiodbc/iodbcinst.h:g" libsrc/Wi/odbcinc.h &&

if [ -f /var/lib/virtuoso/db/virtuoso.lck ] ; then
systemctl stop virtuoso.service
fi
164 changes: 0 additions & 164 deletions sql/virtuoso/init.d/virtuosod

This file was deleted.

0 comments on commit adc366b

Please sign in to comment.