Ravenports generated: 30 Jun 2019 14:07
[ravenports.git] / bucket_C4 / pkg-bsd
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               pkg-bsd
4 VERSION=                1.10.99.10
5 REVISION=               5
6 KEYWORDS=               raven
7 VARIANTS=               standard
8 SDESC[standard]=        BSD binary package manager
9 HOMEPAGE=               https://github.com/freebsd/pkg/blob/master/README.md
10 CONTACT=                nobody
11
12 DOWNLOAD_GROUPS=        main sqlite
13 SITES[main]=            GITHUB/jrmarino:pkg:1a364d2
14 SITES[sqlite]=          https://www.sqlite.org/2018/
15                         http://www2.sqlite.org/2018/
16 DISTFILE[1]=            generated:main
17 DISTFILE[2]=            sqlite-autoconf-3230100.tar.gz:sqlite
18 DF_INDEX=               1 2
19 SPKGS[standard]=        shared
20                         static
21
22 OPTIONS_AVAILABLE=      none
23 OPTIONS_STANDARD=       none
24
25 BUILD_DEPENDS=          zlib:static:standard
26                         bzip2:static:standard
27                         Zstandard:static:standard
28                         autoconf:single:standard
29                         automake:single:standard
30 BUILDRUN_DEPENDS=       libarchive:single:standard
31 B_DEPS[sunos]=          libbsd4sol:single:standard musl-fts:single:standard
32 BR_DEPS[linux]=         libbsd:single:standard
33
34 USES=                   pkgconfig ssl:build
35
36 LICENSE=                BSD2CLAUSE:shared
37 LICENSE_FILE=           BSD2CLAUSE:{{WRKSRC}}/COPYING
38 LICENSE_SCHEME=         solo
39
40 FPC_EQUIVALENT=         ports-mgmt/pkg
41
42 MUST_CONFIGURE=         yes
43 CONFIGURE_ARGS=         --mandir={{MANPREFIX}}/man
44                         --pkgconfigdir={{PREFIX}}/lib/pkgconfig
45                         --prefix={{PREFIX}}
46
47 SUB_FILES=              pkg.c
48
49 CFLAGS=                 -Wno-error
50 VAR_OPSYS[sunos]=       CFLAGS=-I{{LOCALBASE}}/include/bsd
51
52 post-install:
53         ${RM} ${STAGEDIR}${PREFIX}/sbin/pkg2ng
54         ${STRIP_CMD} ${STAGEDIR}${PREFIX}/sbin/pkg*
55         ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libpkg.${LIBEXT}
56         ${MV} ${STAGEDIR}${PREFIX}/sbin/pkg \
57                 ${STAGEDIR}${PREFIX}/sbin/pkg-dynamic
58         ${MV} ${WRKDIR}/pkg-selector ${STAGEDIR}${PREFIX}/sbin/pkg
59         ${INSTALL_SCRIPT} ${WRKSRC}/scripts/periodic/411.pkg-backup \
60                 ${WRKSRC}/scripts/periodic/490.status-pkg-changes \
61                 ${STAGEDIR}${PREFIX}/etc/periodic/daily/
62         ${INSTALL_SCRIPT} ${WRKSRC}/scripts/periodic/460.pkg-checksum \
63                 ${WRKSRC}/scripts/periodic/410.pkg-audit \
64                 ${STAGEDIR}${PREFIX}/etc/periodic/security/
65         ${INSTALL_SCRIPT} ${WRKSRC}/scripts/periodic/400.status-pkg \
66                 ${STAGEDIR}${PREFIX}/etc/periodic/weekly/
67         ${MKDIR} ${STAGEDIR}${PREFIX}/etc/pkg/repos
68
69 post-build:
70         (cd ${WRKDIR} && ${CC} pkg.c -o pkg-selector)
71         ${STRIP_CMD} ${WRKDIR}/pkg-selector
72
73 post-extract:
74         # Use a newer sqlite than the provided 3.15.2 version
75         (cd ${WRKDIR}/sqlite-autoconf-3230100/ && \
76                 cp sqlite3.[ch] shell.c ${WRKSRC}/external/sqlite/)
77         ${REINPLACE_CMD} -e 's|SQLITE_CDECL main|SQLITE_CDECL sqlite3_shell|'\
78                 ${WRKSRC}/external/sqlite/shell.c
79         ${CHMOD} ${BINMODE} ${WRKSRC}/configure \
80                 ${WRKSRC}/autosetup/autosetup-find-tclsh
81
82 [FILE:297:descriptions/desc.shared]
83 The pkg program is the package management tool used natively on FreeBSD and
84 DragonFly, and has also been successfully demonstrated on NetBSD, OpenBSD,
85 Darwin, Solaris and its derivatives.
86
87 This package manager handles the manipulation of both locally-built and
88 remotely available binary packages.
89
90
91 [FILE:509:descriptions/desc.static]
92 The pkg program is the package management tool used natively on FreeBSD and
93 DragonFly, and has also been successfully demonstrated on NetBSD, OpenBSD,
94 Darwin, Solaris and its derivatives.
95
96 This package manager handles the manipulation of both locally-built and
97 remotely available binary packages.
98
99 This package contains just the statically-linked version (pkg-static)
100 and a selector program (pkg) that preferentially forks into pkg-dynamic
101 with the same arguments and falls back to pkg-static when not found.
102
103
104 [FILE:215:distinfo]
105 eac9d1b2f9bac37f94ca6db5868e87c7e4b6eacd569b068bb31fafc23513ddc8      3556565 jrmarino-pkg-1a364d2.tar.gz
106 92842b283e5e744eff5da29ed3c69391de7368fccc4d0ee6bf62490ce555ef25      2675362 sqlite-autoconf-3230100.tar.gz
107
108
109 [FILE:1027:manifests/plist.shared]
110 @sample etc/pkg.conf.sample
111 etc/bash_completion.d/_pkg.bash
112 etc/periodic/daily/
113  411.pkg-backup
114  490.status-pkg-changes
115 etc/periodic/security/
116  410.pkg-audit
117  460.pkg-checksum
118 etc/periodic/weekly/400.status-pkg
119 include/pkg.h
120 lib/
121  libpkg.a
122  libpkg.so
123  libpkg.so.4
124 lib/pkgconfig/pkg.pc
125 sbin/pkg-dynamic
126 share/man/man3/
127  pkg_printf.3.gz
128  pkg_repos.3.gz
129 share/man/man5/
130  pkg-repository.5.gz
131  pkg.conf.5.gz
132 share/man/man8/
133  pkg-add.8.gz
134  pkg-alias.8.gz
135  pkg-annotate.8.gz
136  pkg-audit.8.gz
137  pkg-autoremove.8.gz
138  pkg-backup.8.gz
139  pkg-check.8.gz
140  pkg-clean.8.gz
141  pkg-config.8.gz
142  pkg-create.8.gz
143  pkg-delete.8.gz
144  pkg-fetch.8.gz
145  pkg-info.8.gz
146  pkg-install.8.gz
147  pkg-lock.8.gz
148  pkg-query.8.gz
149  pkg-register.8.gz
150  pkg-remove.8.gz
151  pkg-repo.8.gz
152  pkg-rquery.8.gz
153  pkg-search.8.gz
154  pkg-set.8.gz
155  pkg-shell.8.gz
156  pkg-shlib.8.gz
157  pkg-ssh.8.gz
158  pkg-static.8.gz
159  pkg-stats.8.gz
160  pkg-unlock.8.gz
161  pkg-update.8.gz
162  pkg-updating.8.gz
163  pkg-upgrade.8.gz
164  pkg-version.8.gz
165  pkg-which.8.gz
166  pkg.8.gz
167 share/zsh/site-functions/_pkg
168 @dir etc/pkg/repos
169
170
171 [FILE:23:manifests/plist.static]
172 sbin/
173  pkg
174  pkg-static
175
176
177 [FILE:945:files/pkg.c.in]
178 /*
179  * This program will check if %%PREFIX%%/bin/pkg-dynamic exists.
180  * If it does, that program will be executed with the same arguments
181  * provided to this one.  The fallback action is to execute
182  * %%PREFIX/bin/pkg-static with the same arguments instead.  That
183  * program is installed together with this one, so it's assumed to exist.
184  */
185
186 #include <stdio.h>
187 #include <stdlib.h>
188 #include <string.h>
189 #include <unistd.h>
190
191
192 int
193 main(int argc, char **argv)
194 {
195         int x;
196         char *cmd;
197         char *PKG_STATIC  = "%%PREFIX%%/sbin/pkg-static";
198         char *PKG_DYNAMIC = "%%PREFIX%%/sbin/pkg-dynamic";
199
200         if (access(PKG_DYNAMIC, F_OK) != -1) {
201                 cmd = PKG_DYNAMIC;
202         } else {
203                 cmd = PKG_STATIC;
204         }
205
206         argv[0] = cmd;
207         execv(cmd, argv);
208
209         /*
210          * Execution failed, so write out an error message
211          */
212         printf ("Command execution failed: %s\n", cmd);
213         printf ("               arguments:");
214         for (x = 1; x < argc; x++)
215                 printf (" %s", argv[x]);
216         printf ("\n");
217         exit (1);
218 }
219
220
221 [FILE:1081:sunos/patch-src_Makefile.autosetup]
222 --- src/Makefile.autosetup.orig Tue Oct 16 11:56:39 2018
223 +++ src/Makefile.autosetup      Tue Oct 16 11:59:43 2018
224 @@ -51,7 +51,7 @@
225  @else
226  LIBS+= -larchive -lbz2 -lz -llzma -lzstd
227  @endif
228 -OTHER_LIBS=    -lm -lssl -lcrypto -pthread
229 +OTHER_LIBS=    -lssl -lcrypto
230  @if HAVE_LIBUTIL
231  OTHER_LIBS+=   -lutil
232  @endif
233 @@ -61,6 +61,8 @@
234  @if HAVE_LIBRESOLV
235  OTHER_LIBS+=   -lresolv
236  @endif
237 +OTHER_LIBS+=   -lbsd -lfts
238 +DYNALIBS=      -lm -pthread -lsocket -lrt -lresolv -lgen
239  
240  @if libabidir == libmachista
241  LOCAL_LDFLAGS= $(LIBPKGFLAT) $(LIBS) $(OTHER_LIBS) -lresolv
242 @@ -74,13 +76,9 @@
243                 $(PREFIX)/lib/libcrypto.a \
244                 -lm -pthread -lresolv
245  @else
246 -LOCAL_LDFLAGS= -Wl,-Bstatic \
247 -               -Wl,--whole-archive $(LIBPKGFLAT) -Wl,--no-whole-archive \
248 -               $(LIBS) \
249 -               -Wl,-Bdynamic $(OTHER_LIBS) \
250 -               -Wl,--export-dynamic \
251 -               -Wl,--version-script,$(top_builddir)/libpkg/libpkg.ver
252 -STATIC_LDFLAGS=        -static $(LIBPKGFLAT) $(LIBS) $(OTHER_LIBS)
253 +LOCAL_LDFLAGS= $(LIBPKGFLAT) $(LIBS) $(OTHER_LIBS) $(DYNALIBS)
254 +STATIC_LDFLAGS=        -Wl,-Bstatic $(LIBPKGFLAT) $(LIBS) $(OTHER_LIBS) \
255 +               -Wl,-Bdynamic $(DYNALIBS) 
256  @endif
257  
258  
259