1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
8 SDESC[standard]= BSD binary package manager
9 HOMEPAGE= https://github.com/freebsd/pkg/blob/master/README.md
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
19 SPKGS[standard]= shared
22 OPTIONS_AVAILABLE= none
23 OPTIONS_STANDARD= none
25 BUILD_DEPENDS= zlib: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
34 USES= pkgconfig ssl:build
36 LICENSE= BSD2CLAUSE:shared
37 LICENSE_FILE= BSD2CLAUSE:{{WRKSRC}}/COPYING
40 FPC_EQUIVALENT= ports-mgmt/pkg
43 CONFIGURE_ARGS= --mandir={{MANPREFIX}}/man
44 --pkgconfigdir={{PREFIX}}/lib/pkgconfig
50 VAR_OPSYS[sunos]= CFLAGS=-I{{LOCALBASE}}/include/bsd
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
70 (cd ${WRKDIR} && ${CC} pkg.c -o pkg-selector)
71 ${STRIP_CMD} ${WRKDIR}/pkg-selector
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
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.
87 This package manager handles the manipulation of both locally-built and
88 remotely available binary packages.
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.
96 This package manager handles the manipulation of both locally-built and
97 remotely available binary packages.
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.
105 eac9d1b2f9bac37f94ca6db5868e87c7e4b6eacd569b068bb31fafc23513ddc8 3556565 jrmarino-pkg-1a364d2.tar.gz
106 92842b283e5e744eff5da29ed3c69391de7368fccc4d0ee6bf62490ce555ef25 2675362 sqlite-autoconf-3230100.tar.gz
109 [FILE:1027:manifests/plist.shared]
110 @sample etc/pkg.conf.sample
111 etc/bash_completion.d/_pkg.bash
114 490.status-pkg-changes
115 etc/periodic/security/
118 etc/periodic/weekly/400.status-pkg
167 share/zsh/site-functions/_pkg
171 [FILE:23:manifests/plist.static]
177 [FILE:945:files/pkg.c.in]
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.
193 main(int argc, char **argv)
197 char *PKG_STATIC = "%%PREFIX%%/sbin/pkg-static";
198 char *PKG_DYNAMIC = "%%PREFIX%%/sbin/pkg-dynamic";
200 if (access(PKG_DYNAMIC, F_OK) != -1) {
210 * Execution failed, so write out an error message
212 printf ("Command execution failed: %s\n", cmd);
213 printf (" arguments:");
214 for (x = 1; x < argc; x++)
215 printf (" %s", argv[x]);
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
226 LIBS+= -larchive -lbz2 -lz -llzma -lzstd
228 -OTHER_LIBS= -lm -lssl -lcrypto -pthread
229 +OTHER_LIBS= -lssl -lcrypto
235 OTHER_LIBS+= -lresolv
237 +OTHER_LIBS+= -lbsd -lfts
238 +DYNALIBS= -lm -pthread -lsocket -lrt -lresolv -lgen
240 @if libabidir == libmachista
241 LOCAL_LDFLAGS= $(LIBPKGFLAT) $(LIBS) $(OTHER_LIBS) -lresolv
243 $(PREFIX)/lib/libcrypto.a \
244 -lm -pthread -lresolv
246 -LOCAL_LDFLAGS= -Wl,-Bstatic \
247 - -Wl,--whole-archive $(LIBPKGFLAT) -Wl,--no-whole-archive \
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)