Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
aports
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
J0WI
aports
Commits
d3043b5c
Commit
d3043b5c
authored
8 years ago
by
Henrik Riomar
Committed by
Ariadne Conill
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
testing/safekeep: new aport
parent
513bd5e0
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
testing/safekeep/APKBUILD
+50
-0
50 additions, 0 deletions
testing/safekeep/APKBUILD
testing/safekeep/safekeep-server.post-install
+6
-0
6 additions, 0 deletions
testing/safekeep/safekeep-server.post-install
with
56 additions
and
0 deletions
testing/safekeep/APKBUILD
0 → 100644
+
50
−
0
View file @
d3043b5c
# Contributor: Henrik Riomar <henrik.riomar@gmail.com>
# Maintainer: Henrik Riomar <henrik.riomar@gmail.com>
pkgname
=
safekeep
pkgver
=
1.4.4
pkgrel
=
0
pkgdesc
=
"SafeKeep backup system"
url
=
"https://github.com/dimipaun/safekeep"
arch
=
"noarch"
license
=
"GPL2"
depends
=
"openssh-client python2 rdiff-backup util-linux"
makedepends
=
"asciidoc libxml2-utils xmlto"
install
=
"
$pkgname
-server.post-install"
subpackages
=
"
$pkgname
-doc
$pkgname
-client
$pkgname
-server"
source
=
"
$pkgname
-
$pkgver
.tar.gz::https://github.com/dimipaun/
$pkgname
/archive/
$pkgver
.tar.gz"
builddir
=
"
$srcdir
/
$pkgname
-
$pkgver
"
build
()
{
cd
"
$builddir
"
make man
||
return
1
# ionice from util-linux is in /usr/bin (busybox in /bin)
sed
-i
's|PATH=/sbin:/bin:/usr/sbin:/usr/bin|PATH=/sbin:/usr/sbin:/usr/bin:/bin|'
safekeep.cron
||
return
1
}
check
()
{
cd
"
$builddir
"
PATH
=
"
$PATH
:."
make check
||
return
1
}
client
()
{
pkgdesc
=
"SafeKeep backup system - client"
depends
=
"
$pkgname
"
mkdir
-p
"
$subpkgdir
"
# just a meta package
}
server
()
{
pkgdesc
=
"SafeKeep backup system - server"
depends
=
"
$pkgname
"
mkdir
-p
"
$subpkgdir
"
mv
"
$pkgdir
"
/etc
"
$subpkgdir
"
/etc
||
return
1
mkdir
"
$subpkgdir
"
/etc/periodic
||
return
1
mv
"
$subpkgdir
"
/etc/cron.daily
"
$subpkgdir
"
/etc/periodic/daily
||
return
1
}
package
()
{
cd
"
$builddir
"
make
install
DESTDIR
=
"
$pkgdir
"
||
return
1
}
sha512sums
=
"2afdf6784ef2033032978554bc4b8703be86b5dde92795f1b7efe0099fc4cd35d215bc390e9b9ee3b3e396435ab1168a81dad1c7051861fb584a31749e63c68d safekeep-1.4.4.tar.gz"
This diff is collapsed.
Click to expand it.
testing/safekeep/safekeep-server.post-install
0 → 100644
+
6
−
0
View file @
d3043b5c
#!/bin/sh
adduser
-S
-h
/var/lib/safekeep safekeep
install
-d
-m
0700
-o
safekeep
-g
nogroup /var/lib/safekeep/.ssh
exit
0
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment