Codebase list aptly / be0e5f1
Merge branch 'aptly-api' into 'debian/master' create aptly-api package See merge request debian/aptly!2 Sebastien Delafond 5 years ago
11 changed file(s) with 153 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
0 {
1 "rootDir": "/var/lib/aptly-api"
2 }
0 # Default settings for aptly-api
1 LISTEN_ADDRESS='localhost:8080'
0 debian/aptly-api.conf etc
0 #!/bin/sh
1 # postinst script for aptly-api
2 #
3 # see: dh_installdeb(1)
4
5 set -e
6
7 # summary of how this script can be called:
8 # * <postinst> `configure' <most-recently-configured-version>
9 # * <old-postinst> `abort-upgrade' <new version>
10 # * <conflictor's-postinst> `abort-remove' `in-favour' <package>
11 # <new-version>
12 # * <postinst> `abort-remove'
13 # * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
14 # <failed-install-package> <version> `removing'
15 # <conflicting-package> <version>
16 # for details, see http://www.debian.org/doc/debian-policy/ or
17 # the debian-policy package
18
19
20 case "$1" in
21 configure|reconfigure)
22
23 # create an aptly-api group and user
24 if ! grep -q aptly-api /etc/passwd; then
25 adduser --system --home /var/lib/aptly-api --no-create-home aptly-api
26 addgroup --system aptly-api
27 adduser aptly-api aptly-api
28 fi
29
30 # setup /var/lib/aptly-api
31 if [ ! -d /var/lib/aptly-api ]; then
32 mkdir -p /var/lib/aptly-api
33 fi
34 chown aptly-api:aptly-api /var/lib/aptly-api
35
36 # set config file permissions
37 # it may contain secrets so it is not world readable
38 chown root:aptly-api /etc/aptly-api.conf
39 chmod 640 /etc/aptly-api.conf
40 ;;
41
42 abort-upgrade|abort-remove|abort-deconfigure)
43 ;;
44
45 *)
46 echo "postinst called with unknown argument \`$1'" >&2
47 exit 1
48 ;;
49 esac
50
51 # dh_installdeb will replace this with shell code automatically
52 # generated by other debhelper scripts.
53
54 #DEBHELPER#
55
56 exit 0
0 #!/bin/sh
1 # postrm script for aptly-api
2 #
3 # see: dh_installdeb(1)
4
5 set -e
6
7 # summary of how this script can be called:
8 # * <postrm> `remove'
9 # * <postrm> `purge'
10 # * <old-postrm> `upgrade' <new-version>
11 # * <new-postrm> `failed-upgrade' <old-version>
12 # * <new-postrm> `abort-install'
13 # * <new-postrm> `abort-install' <old-version>
14 # * <new-postrm> `abort-upgrade' <old-version>
15 # * <disappearer's-postrm> `disappear' <overwriter>
16 # <overwriter-version>
17 # for details, see http://www.debian.org/doc/debian-policy/ or
18 # the debian-policy package
19
20
21 case "$1" in
22 purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
23 # Only remove /var/lib/aptly-api on purge
24 if [ "${1}" = "purge" ] ; then
25 rm -rf /var/lib/aptly-api
26 fi
27 ;;
28
29 *)
30 echo "postrm called with unknown argument \`$1'" >&2
31 exit 1
32 ;;
33 esac
34
35 # dh_installdeb will replace this with shell code automatically
36 # generated by other debhelper scripts.
37
38 #DEBHELPER#
39
40 exit 0
0 [Unit]
1 Description=Aptly API
2 After=network.target
3 Documentation=man:aptly(1)
4
5 [Service]
6 User=aptly-api
7 Group=aptly-api
8 WorkingDirectory=/var/lib/aptly-api
9 EnvironmentFile=/etc/default/aptly-api
10 ExecStart=/usr/bin/aptly api serve \
11 -config=/etc/aptly-api.conf \
12 -listen=${LISTEN_ADDRESS}
13
14 [Install]
15 WantedBy=multi-user.target
0 usr/bin/aptly
0 aptly (1.3.0-3) UNRELEASED; urgency=medium
1
2 * Create aptly-api package. (Closes: #902032)
3
4 -- Alexandre Viau <aviau@debian.org> Fri, 22 Jun 2018 13:51:50 -0400
5
06 aptly (1.3.0-2) unstable; urgency=medium
17
28 * Team upload, many thanks to Alexandre Viau for this work
11 Section: utils
22 Priority: optional
33 Maintainer: Sebastien Delafond <seb@debian.org>
4 Build-Depends: debhelper (>= 9.0.0),
4 Uploaders: Alexandre Viau <aviau@debian.org>
5 Build-Depends: debhelper (>= 11),
56 dh-golang,
67 golang-any,
78 golang-go.tools,
1819 Depends: bzip2, xz-utils, gnupg, gpgv, ${shlibs:Depends}, ${misc:Depends}
1920 Suggests: graphviz
2021 Built-Using: ${misc:Built-Using}
21 Description: Swiss army knife for Debian repository management
22 Description: Swiss army knife for Debian repository management - main package
2223 It offers several features making it easy to manage Debian package
2324 repositories:
2425 .
3031 - controlled update of one or more packages in snapshot from upstream
3132 mirror, tracking dependencies
3233 - merge two or more snapshots into one
34 .
35 This is the main package, it contains the aptly command-line utility.
36
37 Package: aptly-api
38 Architecture: any
39 Depends: ${misc:Depends}, aptly, adduser
40 Built-Using: ${misc:Built-Using}
41 Description: Swiss army knife for Debian repository management - API
42 It offers several features making it easy to manage Debian package
43 repositories:
44 .
45 - make mirrors of remote Debian/Ubuntu repositories, limiting by
46 components/architectures
47 - take snapshots of mirrors at any point in time, fixing state of
48 repository at some moment of time
49 - publish snapshot as Debian repository, ready to be consumed by apt
50 - controlled update of one or more packages in snapshot from upstream
51 mirror, tracking dependencies
52 - merge two or more snapshots into one
53 .
54 This package contains the aptly-api service.