new package and package move
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
#!/usr/bin/env python
|
||||
# -*- coding: utf-8 -*-
|
||||
#
|
||||
# Licensed under the GNU General Public License, version 3.
|
||||
# See the file http://www.gnu.org/copyleft/gpl.txt
|
||||
|
||||
from pisi.actionsapi import get
|
||||
from pisi.actionsapi import pisitools
|
||||
|
||||
def install():
|
||||
pisitools.insinto("/usr/share/ca-certificates/", "./bin/turksat.crt")
|
||||
pisitools.insinto("/usr/share/signNativeOsService/", "./*")
|
||||
@@ -0,0 +1,34 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from comar.service import *
|
||||
import os
|
||||
|
||||
serviceType = "local"
|
||||
serviceDesc = _({"en": "TurksatImza Service",
|
||||
"tr": "TurksatImza Servisi"})
|
||||
serviceDefault = "off"
|
||||
|
||||
PIDFILE="/run/belgenet/belgenet.pid"
|
||||
|
||||
@synchronized
|
||||
def start():
|
||||
# path to executable
|
||||
# creates a pid file, sets the working directory and calls the jar file
|
||||
startService(command="/usr/share/signNativeOsService/bin/systemctl/start_comar.sh",
|
||||
args="",
|
||||
donotify=True)
|
||||
|
||||
@synchronized
|
||||
def stop():
|
||||
stopService(pidfile=PIDFILE,
|
||||
donotify=True)
|
||||
|
||||
try:
|
||||
os.unlink(PIDFILE)
|
||||
except:
|
||||
pass
|
||||
|
||||
def ready():
|
||||
start()
|
||||
|
||||
def status():
|
||||
return isServiceRunning(pidfile=PIDFILE)
|
||||
@@ -0,0 +1,5 @@
|
||||
#!/bin/sh
|
||||
mkdir /run/belgenet
|
||||
cd /usr/share/signNativeOsService
|
||||
su -c "/usr/bin/java -jar /usr/share/signNativeOsService/signNativeOsService.jar > /dev/null 2>&1" &
|
||||
echo $! > /run/belgenet/belgenet.pid
|
||||
@@ -0,0 +1,60 @@
|
||||
?xml version="1.0" ?>
|
||||
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>belgenet</Name>
|
||||
<Homepage>https://www.belgenet.com.tr/</Homepage>
|
||||
<Packager>
|
||||
<Name>Bedirhan KURT</Name>
|
||||
<Email>bedirhan.kurt@outlook.com</Email>
|
||||
</Packager>
|
||||
<Summary>Proprietary signature service for digital signatures by Turksat Belgenet.</Summary>
|
||||
<Description>Belgenet is a certified Electronic Document Management Service product developed by Turksat that serves more than 400k users in government organizations, complies to the TSE 13298 standards, and manages every kind of document from creation to final touches by protecting such documents' contents, formatting and relational properties.</Description>
|
||||
<License>EULA</License>
|
||||
<Archive type="zip" sha1sum="5367a4a22a736e78b3d5c693473faf782cf026e3">https://github.com/kurtbahartr/belgenet-pisi/releases/download/v1.0.58/signNativeOsService_Linux_1.0.58.zip</Archive>
|
||||
<BuildDependencies>
|
||||
<Dependency>binutils</Dependency>
|
||||
<Dependency>gconf</Dependency>
|
||||
<Dependency>sed</Dependency>
|
||||
<Dependency>wget</Dependency>
|
||||
</BuildDependencies>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>belgenet</Name>
|
||||
<RuntimeDependencies>
|
||||
<Dependency>akiskart</Dependency>
|
||||
<Dependency>jdk8-openjdk</Dependency>
|
||||
</RuntimeDependencies>
|
||||
|
||||
<Files>
|
||||
<Path fileType="data">/usr/share/ca-certificates/turksat.crt</Path>
|
||||
<Path fileType="data">/usr/share/signNativeOsService</Path>
|
||||
<Path fileType="executable">/usr/share/signNativeOsService/bin/systemctl/</Path>
|
||||
</Files>
|
||||
|
||||
<AdditionalFiles>
|
||||
<AdditionalFile owner="root" target="/usr/share/signNativeOsService/bin/systemctl/start_comar.sh" group="root" permission="0755">start_comar.sh</AdditionalFile>
|
||||
</AdditionalFiles>
|
||||
<Provides>
|
||||
<COMAR script="service.py">System.Service</COMAR>
|
||||
</Provides>
|
||||
</Package>
|
||||
|
||||
<History>
|
||||
<Update release="2">
|
||||
<Date>2025-02-05</Date>
|
||||
<Version>1.0.58</Version>
|
||||
<Comment>Rebuild for added dependency</Comment>
|
||||
<Name>Bedirhan KURT</Name>
|
||||
<Email>bedirhan.kurt@outlook.com</Email>
|
||||
</Update>
|
||||
<Update release="1">
|
||||
<Date>2025-02-05</Date>
|
||||
<Version>1.0.58</Version>
|
||||
<Comment>Initial Packaging for PISI</Comment>
|
||||
<Name>Bedirhan KURT</Name>
|
||||
<Email>bedirhan.kurt@outlook.com</Email>
|
||||
</Update>
|
||||
</History>
|
||||
</PISI>
|
||||
Reference in New Issue
Block a user