create core package

This commit is contained in:
aydemir
2015-02-24 11:18:35 +02:00
parent 0e4b743b82
commit 70b25d0f95
1098 changed files with 169545 additions and 0 deletions
+35
View File
@@ -0,0 +1,35 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
from pisi.actionsapi import get
# Use secure delete. Even if the data is deleted with sqlite query, the traces of the deleted data still remains in the file
# but cannot be seen with sqlite query. However, it can be seen by opening the file with a text editor.
# SQLITE_SECURE_DELETE overwrites written data with zeros.
def setup():
pisitools.cflags.add("-DSQLITE_SECURE_DELETE=1",
"-DSQLITE_ENABLE_UNLOCK_NOTIFY=1",
"-DSQLITE_ENABLE_COLUMN_METADATA=1",
"-DSQLITE_DISABLE_DIRSYNC=1",
"-DSQLITE_ENABLE_FTS3=3",
"-DSQLITE_ENABLE_RTREE=1",
"-DNDEBUG=1",
"-fno-strict-aliasing")
pisitools.cflags.sub("-O[s\d]", "-O3")
autotools.configure("--disable-static \
--enable-readline \
--enable-threadsafe")
def build():
autotools.make()
def install():
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
pisitools.dodoc("README*")