mirror of
https://github.com/ysoftdevs/cpp-examples.git
synced 2026-01-16 08:36:50 +01:00
add Gradle Debian Linux packaging
This commit is contained in:
7
gradle/05-debian-package/src/hello/c/hello.c
Normal file
7
gradle/05-debian-package/src/hello/c/hello.c
Normal file
@@ -0,0 +1,7 @@
|
||||
#include <stdio.h>
|
||||
|
||||
int main(int argc, char** argv){
|
||||
printf("Hello FI MUNI!\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
/etc/default/hello-fimuni
|
||||
11
gradle/05-debian-package/src/main/resources/control/control
Normal file
11
gradle/05-debian-package/src/main/resources/control/control
Normal file
@@ -0,0 +1,11 @@
|
||||
Source: hello-fimuni
|
||||
Section: web
|
||||
Priority: optional
|
||||
Version: 1.0.0
|
||||
Maintainer: Juraj Michalek <juraj.michalek@ysoft.com>
|
||||
Homepage: http://www.ysoft.com/
|
||||
Package: hello-fimuni
|
||||
Architecture: all
|
||||
Depends:
|
||||
Description: Hello FI MUNI
|
||||
Example of Linux packaging for Gradle.
|
||||
@@ -0,0 +1,5 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
# Post installation script - executed at the last phase of installation
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
# Post remove script
|
||||
@@ -0,0 +1,6 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
# Pre-uninstallation script
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
|
||||
|
||||
Reference in New Issue
Block a user