mbedtls new package
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
#!/usr/bin/env 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 cmaketools
|
||||
from pisi.actionsapi import pisitools
|
||||
from pisi.actionsapi import shelltools
|
||||
from pisi.actionsapi import get
|
||||
|
||||
def setup():
|
||||
#pisitools.dosed('CMakeLists.txt', '"cmake"', '"lib/cmake"')
|
||||
|
||||
shelltools.system("mkdir build")
|
||||
shelltools.cd("build")
|
||||
cmaketools.configure("-DCMAKE_BUILD_TYPE=Release \
|
||||
-DUSE_SHARED_MBEDTLS_LIBRARY=ON \
|
||||
-DMBEDTLS_FATAL_WARNINGS=OFF \
|
||||
-DINSTALL_MBEDTLS_HEADERS=ON", sourceDir="..")
|
||||
|
||||
def build():
|
||||
cmaketools.make("-C build")
|
||||
|
||||
def install():
|
||||
cmaketools.rawInstall("DESTDIR=%s -C build" % get.installDIR())
|
||||
|
||||
pisitools.dodoc("ChangeLog", "LICENSE", "README*")
|
||||
@@ -0,0 +1,58 @@
|
||||
<?xml version="1.0" ?>
|
||||
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>mbedtls</Name>
|
||||
<Homepage>https://github.com/ARMmbed/mbedtls</Homepage>
|
||||
<Packager>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Packager>
|
||||
<License>Apache</License>
|
||||
<IsA>library</IsA>
|
||||
<Summary>Cryptographic library for embedded systems</Summary>
|
||||
<Description>Gömülü sistemler için kriptografik kitaplık</Description>
|
||||
<Archive sha1sum="036496467be56b21c4afd76e8728e5ff43cd4d57" type="targz">https://github.com/ARMmbed/mbedtls/archive/refs/tags/v2.27.0.tar.gz</Archive>
|
||||
<BuildDependencies>
|
||||
<Dependency>cmake</Dependency>
|
||||
<Dependency>python3</Dependency>
|
||||
</BuildDependencies>
|
||||
<!--
|
||||
<Patches>
|
||||
<Patch>mbedtls.patch</Patch>
|
||||
<Patch level="1">mbedtls.patch</Patch>
|
||||
</Patches>
|
||||
-->
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>mbedtls</Name>
|
||||
<Files>
|
||||
<Path fileType="executable">/usr/bin</Path>
|
||||
<Path fileType="library">/usr/lib</Path>
|
||||
<Path fileType="doc">/usr/share/doc</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<Package>
|
||||
<Name>mbedtls-devel</Name>
|
||||
<Summary>Development files for mbedtls</Summary>
|
||||
<RuntimeDependencies>
|
||||
<Dependency release="current">mbedtls</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="header">/usr/include</Path>
|
||||
<Path fileType="data">/usr/lib/cmake</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<History>
|
||||
<Update release="1">
|
||||
<Date>2021-11-09</Date>
|
||||
<Version>2.27.0</Version>
|
||||
<Comment>First release</Comment>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Update>
|
||||
</History>
|
||||
</PISI>
|
||||
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" ?>
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>mbedtls</Name>
|
||||
<Summary xml:lang="tr">Cryptographic library for embedded systems</Summary>
|
||||
<Description xml:lang="tr">Gömülü sistemler için kriptografik kitaplık</Description>
|
||||
</Source>
|
||||
</PISI>
|
||||
@@ -0,0 +1,91 @@
|
||||
<?xml version="1.0" ?>
|
||||
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>mbedtls</Name>
|
||||
<Homepage>https://github.com/ARMmbed/mbedtls</Homepage>
|
||||
<Packager>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Packager>
|
||||
<License>Apache</License>
|
||||
<IsA>library</IsA>
|
||||
<Summary>Cryptographic library for embedded systems</Summary>
|
||||
<Description>Gömülü sistemler için kriptografik kitaplık</Description>
|
||||
<Archive sha1sum="f500284a8eda028ad76dc466e593218164dabe66" type="targz">https://github.com/ARMmbed/mbedtls/archive/refs/tags/v3.0.0.tar.gz</Archive>
|
||||
<!--
|
||||
<BuildDependencies>
|
||||
<Dependency>Dep1-devel</Dependency>
|
||||
<Dependency>Dep2-devel</Dependency>
|
||||
<Dependency>Dep3-devel</Dependency>
|
||||
<Dependency versionFrom="">Dep4-devel</Dependency>
|
||||
</BuildDependencies>
|
||||
-->
|
||||
<!--
|
||||
<Patches>
|
||||
<Patch>mbedtls.patch</Patch>
|
||||
<Patch level="1">mbedtls.patch</Patch>
|
||||
</Patches>
|
||||
-->
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>mbedtls</Name>
|
||||
<!--
|
||||
<RuntimeDependencies>
|
||||
<Dependency>Dep1</Dependency>
|
||||
<Dependency>Dep2</Dependency>
|
||||
<Dependency>Dep3</Dependency>
|
||||
<Dependency versionFrom="">Dep4</Dependency>
|
||||
</RuntimeDependencies>
|
||||
-->
|
||||
<Files>
|
||||
<Path fileType="all">/</Path>
|
||||
<!--
|
||||
<Path fileType="executable">/usr/bin</Path>
|
||||
<Path fileType="config">/etc</Path>
|
||||
<Path fileType="library">/usr/lib</Path>
|
||||
<Path fileType="header">/usr/include</Path>
|
||||
<Path fileType="data">/usr/share</Path>
|
||||
<Path fileType="localedata">/usr/share/locale</Path>
|
||||
<Path fileType="man">/usr/share/man</Path>
|
||||
<Path fileType="info">/usr/share/info</Path>
|
||||
<Path fileType="doc">/usr/share/doc</Path>
|
||||
-->
|
||||
</Files>
|
||||
<!--
|
||||
<AdditionalFiles>
|
||||
<AdditionalFile owner="root" permission="0644" target="/usr/share/applications/mbedtls.desktop">mbedtls.desktop</AdditionalFile>
|
||||
<AdditionalFile owner="root" permission="0644" target="/usr/share/pixmaps/mbedtls.png">mbedtls.png</AdditionalFile>
|
||||
</AdditionalFiles>
|
||||
-->
|
||||
<!--
|
||||
<Provides>
|
||||
<COMAR script="package.py">System.Package</COMAR>
|
||||
<COMAR script="service.py">System.Service</COMAR>
|
||||
</Provides>
|
||||
-->
|
||||
</Package>
|
||||
|
||||
<Package>
|
||||
<Name>mbedtls-devel</Name>
|
||||
<Summary>Development files for mbedtls</Summary>
|
||||
<RuntimeDependencies>
|
||||
<Dependency release="current">mbedtls</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="header">/usr/include</Path>
|
||||
<Path fileType="data">/usr/lib/cmake</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<History>
|
||||
<Update release="1">
|
||||
<Date>2021-11-09</Date>
|
||||
<Version>3.0.0</Version>
|
||||
<Comment>First release</Comment>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Update>
|
||||
</History>
|
||||
</PISI>
|
||||
Reference in New Issue
Block a user