Ravenports generated: 14 Dec 2019 09:17
[ravenports.git] / bucket_ED / ravensw
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               ravensw
4 VERSION=                1.11.1
5 REVISION=               4
6 KEYWORDS=               raven
7 VARIANTS=               standard
8 SDESC[standard]=        Ravenports binary package manager
9 HOMEPAGE=               https://github.com/jrmarino/ravensw/blob/master/README.md
10 CONTACT=                nobody
11
12 DOWNLOAD_GROUPS=        main sqlite
13 SITES[main]=            GITHUB/jrmarino:ravensw:16e7810
14 SITES[sqlite]=          https://www.sqlite.org/2019/
15                         http://www2.sqlite.org/2019/
16 DISTFILE[1]=            generated:main
17 DISTFILE[2]=            sqlite-autoconf-3280000.tar.gz:sqlite
18 DF_INDEX=               1 2
19 SPKGS[standard]=        single
20
21 OPTIONS_AVAILABLE=      RUNTESTS
22 OPTIONS_STANDARD=       RUNTESTS
23
24 BUILD_DEPENDS=          libarchive:single:ravensw
25                         libucl:single:ravensw
26                         fetch:single:library
27                         linenoise:single:standard
28                         expat:static:standard
29                         libb2:single:standard
30                         elftoolchain:libraries:standard
31                         uthash:primary:standard
32                         picosat:single:standard
33                         Zstandard:static:standard
34                         autoconf:single:standard
35                         automake:single:standard
36 B_DEPS[sunos]=          musl-fts:single:standard
37
38 USES=                   pkgconfig ssl:build
39
40 LICENSE=                BSD2CLAUSE:single
41 LICENSE_FILE=           BSD2CLAUSE:{{WRKSRC}}/COPYING
42 LICENSE_SCHEME=         solo
43
44 MUST_CONFIGURE=         yes
45 CONFIGURE_ARGS=         --mandir={{MANPREFIX}}/man
46                         --pkgconfigdir={{PREFIX}}/lib/pkgconfig
47                         --prefix={{PREFIX}}
48
49 SET_DEBUGGING_ON=       yes
50 CFLAGS=                 -Wno-error
51 OPTIMIZER_LEVEL=        0
52
53 [RUNTESTS].DESCRIPTION=                 Run kyua tests after build
54 [RUNTESTS].BUILD_DEPENDS_ON=            kyua:single:standard
55                                         Zstandard:complete:standard
56
57 post-build-RUNTESTS-ON:
58         # All the tests are hardcoded with "pkg" executable
59         (cd ${WRKSRC}/src && ${LN} -s ravensw pkg)
60         ${ECHO} "!/bin/sh"                   >> ${WRKSRC}/tests/exec_test.sh
61 .if "${OPSYS}" == "Linux"
62         ${ECHO} "export -n RAVENSW_CACHEDIR" >> ${WRKSRC}/tests/exec_test.sh
63         ${ECHO} "export -n RAVENSW_DBDIR"    >> ${WRKSRC}/tests/exec_test.sh
64 .else
65         ${ECHO} "unset RAVENSW_CACHEDIR"  >> ${WRKSRC}/tests/exec_test.sh
66         ${ECHO} "unset RAVENSW_DBDIR"     >> ${WRKSRC}/tests/exec_test.sh
67 .endif
68         ${ECHO} "kyua test"                  >> ${WRKSRC}/tests/exec_test.sh
69         ${CHMOD} ${BINMODE} ${WRKSRC}/tests/exec_test.sh
70
71 post-extract:
72         # Install SQLite source
73         (cd ${WRKDIR}/sqlite-autoconf-3280000/ && \
74                 cp sqlite3.[ch] shell.c ${WRKSRC}/external/sqlite/)
75         ${REINPLACE_CMD} -e 's|SQLITE_CDECL main|SQLITE_CDECL sqlite3_shell|'\
76                 ${WRKSRC}/external/sqlite/shell.c
77
78 [FILE:473:descriptions/desc.single]
79 The ravensw program is the package management tool used by Ravenports.
80 It handles the manipulation of both locally built and remotely available
81 binary packages.
82
83 It is a fork of FreeBSD's pkg program.  It behaves identically in most
84 cases, and documentation written for pkg is probably valid for ravensw
85 as well (after substituting the name).
86
87 The primary reason for changing the name is to avoid confusion with
88 "pkg", the package manager used by some Solaris derivatives.
89
90
91 [FILE:219:distinfo]
92 f483ffe622c22a06846f313d88875e9e6dab82e9f6521aad753088aafba200d2       668267 jrmarino-ravensw-16e7810.tar.gz
93 d61b5286f062adfce5125eaf544d495300656908e61fca143517afcc0a89b7c3      2810415 sqlite-autoconf-3280000.tar.gz
94
95
96 [FILE:1059:manifests/plist.single]
97 @sample etc/ravensw.conf.sample
98 etc/bash_completion.d/_ravensw.bash
99 etc/periodic/daily/
100  411.ravensw-backup
101  490.status-ravensw-changes
102 etc/periodic/security/
103  410.ravensw-audit
104  460.ravensw-checksum
105 etc/periodic/weekly/400.status-ravensw
106 sbin/ravensw
107 share/man/man5/
108  ravensw-repository.5.gz
109  ravensw.conf.5.gz
110 share/man/man8/
111  ravensw-add.8.gz
112  ravensw-alias.8.gz
113  ravensw-annotate.8.gz
114  ravensw-audit.8.gz
115  ravensw-autoremove.8.gz
116  ravensw-backup.8.gz
117  ravensw-check.8.gz
118  ravensw-clean.8.gz
119  ravensw-config.8.gz
120  ravensw-create.8.gz
121  ravensw-delete.8.gz
122  ravensw-fetch.8.gz
123  ravensw-info.8.gz
124  ravensw-install.8.gz
125  ravensw-lock.8.gz
126  ravensw-query.8.gz
127  ravensw-register.8.gz
128  ravensw-remove.8.gz
129  ravensw-repo.8.gz
130  ravensw-rquery.8.gz
131  ravensw-search.8.gz
132  ravensw-set.8.gz
133  ravensw-shell.8.gz
134  ravensw-shlib.8.gz
135  ravensw-ssh.8.gz
136  ravensw-stats.8.gz
137  ravensw-unlock.8.gz
138  ravensw-update.8.gz
139  ravensw-updating.8.gz
140  ravensw-upgrade.8.gz
141  ravensw-version.8.gz
142  ravensw-which.8.gz
143  ravensw.8.gz
144 share/zsh/site-functions/_ravensw
145 @dir etc/ravensw/repos
146
147
148 [FILE:601:patches/patch-libpkg_port__fileat.c]
149 --- libpkg/port_fileat.c.orig   2019-07-23 16:09:40 UTC
150 +++ libpkg/port_fileat.c
151 @@ -88,7 +88,7 @@ file_chdir_unlock(int dfd)
152         file_at_dfd = -1;
153  
154         if (dfd == AT_FDCWD)
155 -               return;
156 +               return(0);
157  
158         if (saved_cwd[0] != '\0')
159                 chdir(saved_cwd);
160 @@ -170,11 +170,15 @@ port_fchmodat(int fd, const char* path,
161         if ((ret = file_chdir_lock(fd) != 0))
162                 return(ret);
163  
164 +#if defined(__sun__) || defined(__linux__)
165 +       ret = chmod(path, mode);
166 +#else
167         if (flag & AT_SYMLINK_NOFOLLOW) {
168                 ret = lchmod(path, mode);
169         } else {
170                 ret = chmod(path, mode);
171         }
172 +#endif
173  
174         file_chdir_unlock(fd);
175         return(ret);
176