This commit is contained in:
2025-08-26 08:11:42 +02:00
parent 18e2a5368d
commit 67c8d5ea09
189 changed files with 8108 additions and 980 deletions

48
system/libpci/Makefile Normal file
View File

@@ -0,0 +1,48 @@
#
# $Id$
#
PORTNAME= libpci
PORTVERSION= 3.5.2
CATEGORIES= devel
MASTER_SITES+= KERNEL_ORG/software/utils/pciutils
MASTER_SITES+= ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci/
MASTER_SITES+= LOCAL/sunpoet
DISTNAME= pciutils-${PORTVERSION}
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= PCI configuration space I/O made easy
RUN_DEPENDS= ${LOCALBASE}/share/pciids/pci.ids:system/pciids
ALL_TARGET= lib/libpci.a
CPPFLAGS+= -fPIC
MAKE_ENV= LANG=C
USE_LDCONFIG= yes
USES= gmake tar:xz
LIBPCI_FILES+= include/pci/config.h
LIBPCI_FILES+= include/pci/header.h
LIBPCI_FILES+= include/pci/pci.h
LIBPCI_FILES+= include/pci/types.h
LIBPCI_FILES+= lib/libpci.a
LIBPCI_FILES+= lib/libpci.so.3
LIBPCI_FILES+= lib/pkgconfig/libpci.pc
post-patch:
${LN} -s . ${WRKSRC}/lib/pci
${REINPLACE_CMD} -e '/^CC=/d; /^CFLAGS=/ s|=|+=|; /^IDSDIR=/ s|$$|/pciids|; /^OPT=/d; /^PREFIX=/d' ${WRKSRC}/Makefile
${REINPLACE_CMD} 's|^#include "|&pci/|' ${WRKSRC}/lib/pci.h
post-build:
cd ${WRKSRC}/lib/ && ${CC} ${CFLAGS} ${STRIP} -Wl,-soname=libpci.so.3 -shared *.o -lz -o libpci.so.3
do-install:
${MKDIR} ${STAGEDIR}${PREFIX}/include/pci/
${MKDIR} ${STAGEDIR}${PREFIX}/lib/pkgconfig/
.for F in ${LIBPCI_FILES}
${INSTALL_DATA} ${WRKSRC}/lib/${F:T} ${STAGEDIR}${PREFIX}/${F}
.endfor
${LN} -fs libpci.so.3 ${STAGEDIR}${PREFIX}/lib/libpci.so
.include <bsd.port.mk>
#EOF

3
system/libpci/distinfo Normal file
View File

@@ -0,0 +1,3 @@
TIMESTAMP = 1479474847
SHA256 (pciutils-3.5.2.tar.xz) = 3a99141a9f40528d0a0035665a06dc37ddb1ae341658e51b50a76ecf86235efc
SIZE (pciutils-3.5.2.tar.xz) = 317260

4
system/libpci/pkg-descr Normal file
View File

@@ -0,0 +1,4 @@
libpci provides a portable layer for read and write access to PCI configuration
registers. Supported platforms include Linux, FreeBSD, NetBSD and AIX.
WWW: http://mj.ucw.cz/sw/pciutils/

9
system/libpci/pkg-plist Normal file
View File

@@ -0,0 +1,9 @@
include/pci/config.h
include/pci/header.h
include/pci/pci.h
include/pci/types.h
lib/libpci.a
lib/libpci.so
lib/libpci.so.3
lib/pkgconfig/libpci.pc
@dir include/pci

25
system/pciids/Makefile Normal file
View File

@@ -0,0 +1,25 @@
#
# $Id$
#
PORTNAME= pciids
PORTVERSION= 20160522
CATEGORIES= misc
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Database of all known IDs used in PCI devices
NO_ARCH= yes
NO_BUILD= yes
PLIST_FILES= %%DATADIR%%/pci.ids
GH_ACCOUNT= pciutils
GH_TAGNAME= eaf479c
USE_GITHUB= yes
do-install:
${MKDIR} ${STAGEDIR}${DATADIR}/
${INSTALL_DATA} ${WRKSRC}/pci.ids ${STAGEDIR}${DATADIR}/
.include <bsd.port.mk>
#EOF

3
system/pciids/distinfo Normal file
View File

@@ -0,0 +1,3 @@
TIMESTAMP = 1463904394
SHA256 (pciutils-pciids-20160522-eaf479c_GH0.tar.gz) = 7de2f0ed8e79dbdc1f3179d83782a118e015b1886e0ed2e970350f3422241025
SIZE (pciutils-pciids-20160522-eaf479c_GH0.tar.gz) = 244001

3
system/pciids/pkg-descr Normal file
View File

@@ -0,0 +1,3 @@
Database of all known ID's used in PCI devices
WWW: http://pciids.sourceforge.net/

31
system/pciutils/Makefile Normal file
View File

@@ -0,0 +1,31 @@
#
# $Id$
#
PORTNAME= pciutils
PORTVERSION= 3.5.2
CATEGORIES= sysutils
MASTER_SITES+= KERNEL_ORG/software/utils/pciutils
MASTER_SITES+= ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci/
MASTER_SITES+= LOCAL/sunpoet
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= PCI configuration utilities
LIB_DEPENDS= libpci.so:system/libpci
RUN_DEPENDS= ${LOCALBASE}/share/pciids/pci.ids:system/pciids
ALL_TARGET= lspci lspci.8 setpci setpci.8
CPPFLAGS+= -fPIC -I${LOCALBASE}/include
LDFLAGS+= -lpci -L${LOCALBASE}/lib
MAKE_ENV= LANG=C
USES= gmake localbase tar:xz
post-patch:
${REINPLACE_CMD} -e '/^CC=/d; /^CFLAGS=/ s|=|+=|; /^IDSDIR=/ s|$$|/pciids|; /^OPT=/d; /^PREFIX=/d; s| lib/$$(PCILIB)||' ${WRKSRC}/Makefile
do-install:
cd ${WRKSRC}/ && ${INSTALL_PROGRAM} lspci setpci ${STAGEDIR}${PREFIX}/bin/
cd ${WRKSRC}/ && ${INSTALL_MAN} lspci.8 setpci.8 ${STAGEDIR}${PREFIX}/man/man8/
.include <bsd.port.mk>
#EOF

2
system/pciutils/distinfo Normal file
View File

@@ -0,0 +1,2 @@
SHA256 (pciutils-3.5.2.tar.xz) = 3a99141a9f40528d0a0035665a06dc37ddb1ae341658e51b50a76ecf86235efc
SIZE (pciutils-3.5.2.tar.xz) = 317260

View File

@@ -0,0 +1,8 @@
The PCI Utilities package contains various utilities dealing
with the PCI bus, and also a library for portable access to
PCI configuration registers. It includes `lspci' for listing
all PCI devices (very useful for debugging of both kernel and
device drivers) and `setpci' for manual configuration of PCI
devices.
WWW: http://mj.ucw.cz/sw/pciutils/

View File

@@ -0,0 +1,4 @@
bin/lspci
bin/setpci
man/man8/lspci.8.gz
man/man8/setpci.8.gz

21
system/rpm2cpio/Makefile Normal file
View File

@@ -0,0 +1,21 @@
# Created by: Juergen Lock <nox@jelal.kn-bremen.de>
# $FreeBSD: head/archivers/rpm2cpio/Makefile 408590 2016-02-09 20:06:21Z ak $
PORTNAME= rpm2cpio
PORTVERSION= 1.4
CATEGORIES= archivers
MASTER_SITES= # none
DISTFILES= # none
MAINTAINER= ak@FreeBSD.org
COMMENT= Convert .rpm files to cpio format
NO_BUILD= yes
NO_ARCH= yes
PLIST_FILES= bin/rpm2cpio
do-install:
${INSTALL_SCRIPT} ${FILESDIR}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/rpm2cpio
.include <bsd.port.mk>

View File

@@ -0,0 +1,17 @@
#!/bin/sh
# NB! needs bsdtar/libarchive v2.8+
PATH=/bin:/usr/bin
if [ $# -eq 0 -a ! -t 0 ]; then
f=/dev/stdin
elif [ $# -eq 1 ]; then
f=$1
else
echo Usage: rpm2cpio [file.rpm]
echo dumps the contents to stdout as a GNU cpio archive
exit 0
fi
tar cf - --format=newc @- < ${f}

View File

@@ -0,0 +1,7 @@
Convert .rpm files to cpio format.
Why does the world need another rpm2cpio? because the existing one
won't build unless you have half a ton of things that aren't really
required for it, since it uses the same library used to extract RPM's.
This version is just a tiny wrapper around bsdtar.

64
system/sudo/Makefile Normal file
View File

@@ -0,0 +1,64 @@
#
# $Id$
#
PORTNAME= sudo
DISTVERSION= 1.8.25p1
PORTVERSION= ${DISTVERSION:S/p/./}
CATEGORIES= security
MASTER_SITES= ${MASTER_SITE_SUDO}
MAINTAINER= onborodin@gmail.com
COMMENT= Allow others to run commands as root
GNU_CONFIGURE= yes
USES+= gmake
LDFLAGS+= -lgcc
LDFLAGS+= -lssp_nonshared
CONFIGURE_ARGS+= --sysconfdir=${PREFIX}/etc
CONFIGURE_ARGS+= --with-ignore-dot
CONFIGURE_ARGS+= --with-tty-tickets
CONFIGURE_ARGS+= --with-env-editor
CONFIGURE_ARGS+= --with-logincap
CONFIGURE_ARGS+= --with-long-otp-prompt
CONFIGURE_ARGS+= --with-insults
CONFIGURE_ARGS+= --with-all-insults
CONFIGURE_ARGS+= --enable-shell-sets-home
CONFIGURE_ARGS+= --without-lecture
CONFIGURE_ARGS+= --without-ldap
##CONFIGURE_ARGS+= --disable-root-sudo
##CONFIGURE_ARGS+= --disable-authentication
CONFIGURE_ARGS+= --without-opie
CONFIGURE_ARGS+= --with-pam
CONFIGURE_ARGS+= --disable-pie
LOGFAC?= authpriv
CONFIGURE_ARGS+= --with-logfac=${LOGFAC}
## ex: make SUDO_SECURE_PATH="/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin"
#.if defined(SUDO_SECURE_PATH)
#CONFIGURE_ARGS+= --with-secure-path="${SUDO_SECURE_PATH}"
#.endif
LDFLAGS+= -L${LOCALBASE}/lib -lintl
CFLAGS+= -I${LOCALBASE}/include
post-patch:
# ${REINPLACE_CMD} -E '/install-(binaries|noexec):/,/^$$/ \
# s/\$$\(INSTALL\)/& ${STRIP}/;s/-b\~/-b ~/' \
# ${WRKSRC}/src/Makefile.in
# ${REINPLACE_CMD} -e 's,$$(srcdir)/sudoers2ldif $$(DESTDIR)$$(docdir),$$(srcdir)/sudoers2ldif $$(DESTDIR)$$(bindir),' ${WRKSRC}/plugins/sudoers/Makefile.in
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/sudoreplay
${STRIP_CMD} ${STAGEDIR}${PREFIX}/sbin/visudo
.for FILE in group_file.so sudoers.so system_group.so
${STRIP_CMD} ${STAGEDIR}${PREFIX}/libexec/sudo/${FILE}
.endfor
cd ${STAGEDIR}/${PREFIX}/man/man8 && ${LN} -sf sudo.8 sudoedit.8
.include <bsd.port.mk>
#EOF

2
system/sudo/distinfo Normal file
View File

@@ -0,0 +1,2 @@
SHA256 (sudo-1.8.25p1.tar.gz) = 9dc99c7a7d37a0ab938410995c133e15d6afb970c2c66f9264fe36d20c89195b
SIZE (sudo-1.8.25p1.tar.gz) = 3189951

View File

@@ -0,0 +1,19 @@
#
# $FreeBSD: head/security/sudo/files/pam.conf 340872 2014-01-24 00:14:07Z mat $
#
# PAM configuration for the "sudo" service
#
# auth
auth include system
# account
account include system
# session
# XXX: pam_lastlog (used in system) causes users to appear as though
# they are no longer logged in in system logs.
session required pam_permit.so
# password
password include system

View File

@@ -0,0 +1,28 @@
--- install-sh.orig 2017-01-14 04:30:15 UTC
+++ install-sh
@@ -171,12 +171,6 @@ if ${DIRMODE} ; then
if [ ! -d "${DEST}" ] ; then
${MKDIR} "${DEST}" || exit 1
fi
- if ${CHOWNIT} ; then
- ${CHOWN} "${OWNER}" "${DEST}" || exit 1
- fi
- if ${CHGROUPIT} ; then
- ${CHGRP} "${GROUP}" "${DEST}" || exit 1
- fi
if ${CHMODIT} ; then
${CHMOD} "${MODE}" "${DEST}" || exit 1
fi
@@ -226,12 +220,6 @@ fi
## Strip and set the owner/mode.
if ${STRIPIT} ; then
${STRIP} "${DEST}" || exit 1
-fi
-if ${CHOWNIT} ; then
- ${CHOWN} "${OWNER}" "${DEST}" || exit 1
-fi
-if ${CHGROUPIT} ; then
- ${CHGRP} "${GROUP}" "${DEST}" || exit 1
fi
if ${CHMODIT} ; then
${CHMOD} "${MODE}" "${DEST}" || exit 1

View File

@@ -0,0 +1,27 @@
--- plugins/sudoers/sudoers.in.orig 2018-01-15 17:30:32 UTC
+++ plugins/sudoers/sudoers.in
@@ -32,6 +32,14 @@
##
## Defaults specification
##
+## Uncomment if needed to preserve environmental variables related to the
+## FreeBSD pkg utility and fetch.
+# Defaults env_keep += "PKG_CACHEDIR PKG_DBDIR FTP_PASSIVE_MODE"
+##
+## Additionally uncomment if needed to preserve environmental variables
+## related to portupgrade
+# Defaults env_keep += "PORTSDIR PORTS_INDEX PORTS_DBDIR PACKAGES PKGTOOLS_CONF"
+##
## You may wish to keep some of the following environment variables
## when running commands via sudo.
##
@@ -91,6 +99,9 @@ root ALL=(ALL) ALL
## of the user they are running the command as (root by default).
# Defaults targetpw # Ask for the password of the target user
# ALL ALL=(ALL) ALL # WARNING: only use this together with 'Defaults targetpw'
+
+## Uncomment to show on password prompt which users' password is being expected
+# Defaults passprompt="%p's password:"
## Read drop-in files from @sysconfdir@/sudoers.d
## (the '#' here does not indicate a comment)

View File

@@ -0,0 +1,11 @@
--- plugins/sudoers/parse.c.orig 2019-01-22 13:45:48 UTC
+++ plugins/sudoers/parse.c
@@ -60,7 +60,7 @@ sudoers_lookup_pseudo(struct sudo_nss_list *snl, struc
debug_decl(sudoers_lookup_pseudo, SUDOERS_DEBUG_PARSER)
pwcheck = (pwflag == -1) ? never : sudo_defs_table[pwflag].sd_un.tuple;
- nopass = (pwcheck == all) ? true : false;
+ nopass = (pwcheck == never) ? true : false;
if (list_pw == NULL)
SET(validated, FLAG_NO_CHECK);

View File

@@ -0,0 +1,20 @@
--- ./ltmain.sh.orig 2015-02-28 18:50:58.000000000 +0200
+++ ./ltmain.sh 2015-08-12 17:22:19.429971000 +0200
@@ -8891,15 +8891,10 @@
esac
;;
- freebsd-aout)
- major=.$current
- versuffix=.$current.$revision
- ;;
-
- freebsd-elf)
+ freebsd*)
func_arith $current - $age
major=.$func_arith_result
- versuffix=$major.$age.$revision
+ versuffix=$major
;;
irix | nonstopux)

8
system/sudo/pkg-descr Normal file
View File

@@ -0,0 +1,8 @@
This is the CU version of sudo.
Sudo is a program designed to allow a sysadmin to give limited root
privileges to users and log root activity. The basic philosophy is to
give as few privileges as possible but still allow people to get their
work done.
WWW: http://www.sudo.ws/

15
system/sudo/pkg-install Normal file
View File

@@ -0,0 +1,15 @@
#!/bin/sh
set -x
PREFIX=${PKG_PREFIX}
case $2 in
PRE-INSTALL)
install -d -o root -g wheel -m 0750 /var/db/sudo
install -d -o root -g wheel -m 0750 /var/run/sudo
install -d -o root -g wheel -m 0750 ${PREFIX}/etc/sudoers.d
;;
POST-INSTALL)
;;
esac
#EOF

154
system/sudo/pkg-plist Normal file
View File

@@ -0,0 +1,154 @@
bin/cvtsudoers
bin/sudo
bin/sudoedit
bin/sudoreplay
include/sudo_plugin.h
libexec/sudo/group_file.la
libexec/sudo/group_file.so
libexec/sudo/libsudo_util.la
libexec/sudo/libsudo_util.so
libexec/sudo/libsudo_util.so.0
libexec/sudo/sudo_noexec.la
libexec/sudo/sudo_noexec.so
libexec/sudo/sudoers.la
libexec/sudo/sudoers.so
libexec/sudo/system_group.la
libexec/sudo/system_group.so
man/man1/cvtsudoers.1.gz
man/man5/sudo.conf.5.gz
man/man5/sudoers_timestamp.5.gz
man/man5/sudoers.5.gz
man/man8/sudo_plugin.8.gz
man/man8/sudo.8.gz
man/man8/sudoedit.8.gz
man/man8/sudoreplay.8.gz
man/man8/visudo.8.gz
sbin/visudo
share/locale/ca/LC_MESSAGES/sudo.mo
share/locale/ca/LC_MESSAGES/sudoers.mo
share/locale/cs/LC_MESSAGES/sudo.mo
share/locale/cs/LC_MESSAGES/sudoers.mo
share/locale/da/LC_MESSAGES/sudo.mo
share/locale/da/LC_MESSAGES/sudoers.mo
share/locale/de/LC_MESSAGES/sudo.mo
share/locale/de/LC_MESSAGES/sudoers.mo
share/locale/el/LC_MESSAGES/sudoers.mo
share/locale/eo/LC_MESSAGES/sudo.mo
share/locale/eo/LC_MESSAGES/sudoers.mo
share/locale/es/LC_MESSAGES/sudo.mo
share/locale/eu/LC_MESSAGES/sudo.mo
share/locale/eu/LC_MESSAGES/sudoers.mo
share/locale/fi/LC_MESSAGES/sudo.mo
share/locale/fi/LC_MESSAGES/sudoers.mo
share/locale/fr/LC_MESSAGES/sudo.mo
share/locale/fr/LC_MESSAGES/sudoers.mo
share/locale/fur/LC_MESSAGES/sudo.mo
share/locale/fur/LC_MESSAGES/sudoers.mo
share/locale/gl/LC_MESSAGES/sudo.mo
share/locale/hr/LC_MESSAGES/sudo.mo
share/locale/hr/LC_MESSAGES/sudoers.mo
share/locale/hu/LC_MESSAGES/sudo.mo
share/locale/hu/LC_MESSAGES/sudoers.mo
share/locale/it/LC_MESSAGES/sudo.mo
share/locale/it/LC_MESSAGES/sudoers.mo
share/locale/ja/LC_MESSAGES/sudo.mo
share/locale/ja/LC_MESSAGES/sudoers.mo
share/locale/ko/LC_MESSAGES/sudo.mo
share/locale/ko/LC_MESSAGES/sudoers.mo
share/locale/lt/LC_MESSAGES/sudoers.mo
share/locale/nb/LC_MESSAGES/sudo.mo
share/locale/nb/LC_MESSAGES/sudoers.mo
share/locale/nl/LC_MESSAGES/sudo.mo
share/locale/nl/LC_MESSAGES/sudoers.mo
share/locale/nn/LC_MESSAGES/sudo.mo
share/locale/pl/LC_MESSAGES/sudo.mo
share/locale/pl/LC_MESSAGES/sudoers.mo
share/locale/pt_BR/LC_MESSAGES/sudo.mo
share/locale/pt_BR/LC_MESSAGES/sudoers.mo
share/locale/ru/LC_MESSAGES/sudo.mo
share/locale/ru/LC_MESSAGES/sudoers.mo
share/locale/sk/LC_MESSAGES/sudo.mo
share/locale/sk/LC_MESSAGES/sudoers.mo
share/locale/sl/LC_MESSAGES/sudo.mo
share/locale/sl/LC_MESSAGES/sudoers.mo
share/locale/sr/LC_MESSAGES/sudo.mo
share/locale/sr/LC_MESSAGES/sudoers.mo
share/locale/sv/LC_MESSAGES/sudo.mo
share/locale/sv/LC_MESSAGES/sudoers.mo
share/locale/tr/LC_MESSAGES/sudo.mo
share/locale/tr/LC_MESSAGES/sudoers.mo
share/locale/uk/LC_MESSAGES/sudo.mo
share/locale/uk/LC_MESSAGES/sudoers.mo
share/locale/vi/LC_MESSAGES/sudo.mo
share/locale/vi/LC_MESSAGES/sudoers.mo
share/locale/zh_CN/LC_MESSAGES/sudo.mo
share/locale/zh_CN/LC_MESSAGES/sudoers.mo
share/locale/zh_TW/LC_MESSAGES/sudo.mo
@dir libexec/sudo
@dir share/locale/ca/LC_MESSAGES
@dir share/locale/ca
@dir share/locale/cs/LC_MESSAGES
@dir share/locale/cs
@dir share/locale/da/LC_MESSAGES
@dir share/locale/da
@dir share/locale/de/LC_MESSAGES
@dir share/locale/de
@dir share/locale/el/LC_MESSAGES
@dir share/locale/el
@dir share/locale/eo/LC_MESSAGES
@dir share/locale/eo
@dir share/locale/es/LC_MESSAGES
@dir share/locale/es
@dir share/locale/eu/LC_MESSAGES
@dir share/locale/eu
@dir share/locale/fi/LC_MESSAGES
@dir share/locale/fi
@dir share/locale/fr/LC_MESSAGES
@dir share/locale/fr
@dir share/locale/fur/LC_MESSAGES
@dir share/locale/fur
@dir share/locale/gl/LC_MESSAGES
@dir share/locale/gl
@dir share/locale/hr/LC_MESSAGES
@dir share/locale/hr
@dir share/locale/hu/LC_MESSAGES
@dir share/locale/hu
@dir share/locale/it/LC_MESSAGES
@dir share/locale/it
@dir share/locale/ja/LC_MESSAGES
@dir share/locale/ja
@dir share/locale/ko/LC_MESSAGES
@dir share/locale/ko
@dir share/locale/lt/LC_MESSAGES
@dir share/locale/lt
@dir share/locale/nb/LC_MESSAGES
@dir share/locale/nb
@dir share/locale/nl/LC_MESSAGES
@dir share/locale/nl
@dir share/locale/nn/LC_MESSAGES
@dir share/locale/nn
@dir share/locale/pl/LC_MESSAGES
@dir share/locale/pl
@dir share/locale/pt_BR/LC_MESSAGES
@dir share/locale/pt_BR
@dir share/locale/ru/LC_MESSAGES
@dir share/locale/ru
@dir share/locale/sk/LC_MESSAGES
@dir share/locale/sk
@dir share/locale/sl/LC_MESSAGES
@dir share/locale/sl
@dir share/locale/sr/LC_MESSAGES
@dir share/locale/sr
@dir share/locale/sv/LC_MESSAGES
@dir share/locale/sv
@dir share/locale/tr/LC_MESSAGES
@dir share/locale/tr
@dir share/locale/uk/LC_MESSAGES
@dir share/locale/uk
@dir share/locale/vi/LC_MESSAGES
@dir share/locale/vi
@dir share/locale/zh_CN/LC_MESSAGES
@dir share/locale/zh_CN
@dir share/locale/zh_TW/LC_MESSAGES
@dir share/locale/zh_TW
@dir share/locale

View File

@@ -0,0 +1,19 @@
PORTNAME= usbhid-dump
PORTVERSION= 1.4
CATEGORIES= sysutils
MASTER_SITES= https://github.com/DIGImend/usbhid-dump/releases/download/${PORTVERSION}/
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= USB HID device dumping utility
WWW= https://github.com/DIGImend/usbhid-dump
USES= gmake libtool pkgconfig
GNU_CONFIGURE= yes
post-install:
${MKDIR} ${STAGEDIR}${PREFIX}/include/uhd/
cd ${WRKSRC}/include/uhd/ && ${INSTALL_DATA} *.h ${STAGEDIR}${PREFIX}/include/uhd/
${INSTALL_DATA} ${WRKSRC}/lib/.libs/libuhd.a ${STAGEDIR}${PREFIX}/lib/
.include <bsd.port.mk>

View File

@@ -0,0 +1,3 @@
TIMESTAMP = 1598647305
SHA256 (usbhid-dump-1.4.tar.gz) = 065bdf713ca2446e455f3b71e6fc9d401dc694d73ac9f3c7b66940771660f46c
SIZE (usbhid-dump-1.4.tar.gz) = 341411

View File

@@ -0,0 +1,3 @@
Usbhid-dump is a USB HID dumping utility based on libusb 1.0. It dumps USB HID
device report descriptors and reports themselves as they are being sent, for all
or specific device interfaces.

View File

@@ -0,0 +1,10 @@
bin/usbhid-dump
include/uhd/dev_list.h
include/uhd/dev.h
include/uhd/iface_list.h
include/uhd/iface.h
include/uhd/libusb.h
include/uhd/misc.h
lib/libuhd.a
man/man8/usbhid-dump.8.gz
@dir include/uhd

21
system/usbids/Makefile Normal file
View File

@@ -0,0 +1,21 @@
PORTNAME= usbids
PORTVERSION= 20241204
CATEGORIES= misc
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Database of all known IDs used in USB devices
WWW= http://www.linux-usb.org/
NO_ARCH= yes
NO_BUILD= yes
PORTDATA= usb.ids
USE_GITHUB= yes
GH_TAGNAME= 1ba7de5
do-install:
${MKDIR} ${STAGEDIR}${DATADIR}/
${INSTALL_DATA} ${WRKSRC}/usb.ids ${STAGEDIR}${DATADIR}/
.include <bsd.port.mk>

3
system/usbids/distinfo Normal file
View File

@@ -0,0 +1,3 @@
TIMESTAMP = 1734888062
SHA256 (usbids-usbids-20241204-1ba7de5_GH0.tar.gz) = 12ff8a5cab0f1d58d6ccb282eab863994be9cfc5973d3769366543da7b572a4a
SIZE (usbids-usbids-20241204-1ba7de5_GH0.tar.gz) = 267939

2
system/usbids/pkg-descr Normal file
View File

@@ -0,0 +1,2 @@
Database of all known ID's used in USB devices: ID's of vendors, devices,
subsystems and device classes

40
system/usbutils/Makefile Normal file
View File

@@ -0,0 +1,40 @@
#
# $Id$
#
PORTNAME= usbutils
PORTVERSION= 0.91
CATEGORIES= sysutils
#MASTER_SITES+= SF/linux-usb/${PORTNAME}
#MASTER_SITES+= http://pkgs.fedoraproject.org/repo/pkgs/usbutils/usbutils-0.86.tar.gz/34979f675d2bcb3e1b45012fa830a53f/
#MASTER_SITES+= http://ftp.be.debian.org/pub/linux/utils/usb/usbutils/
DISTVERSIONPREFIX= v
RUN_DEPENDS= usbhid-dump:system/usbhid-dump
RUN_DEPENDS+= ${LOCALBASE}/share/usbids/usb.ids:system/usbids
MAINTAINER= ports@FreeBSD.org
COMMENT= Utility for listing USB devices
GH_ACCOUNT= gregkh
USE_GITHUB= yes
USES= gmake autoreconf
GNU_CONFIGURE= yes
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
CONFIGURE_ARGS= --datadir=${DATADIR} --enable-zlib
CONFIGURE_ENV+= LIBUSB_CFLAGS="-I/usr/include"
CONFIGURE_ENV+= LIBUSB_LIBS="-L/usr/lib -lusb"
CONFIGURE_ARGS+= --datadir=${LOCALBASE}/share/usbids
post-patch:
${REINPLACE_CMD} -i '' -e 's|/bin/bash|/bin/sh|' \
${WRKSRC}/usb-devices
post-install:
# cd ${STAGEDIR}${PREFIX}/sbin && ${MV} update-usbids.sh update-usbids
.include <bsd.port.mk>
#EOF

3
system/usbutils/distinfo Normal file
View File

@@ -0,0 +1,3 @@
TIMESTAMP = 1756187158
SHA256 (gregkh-usbutils-v0.91_GH0.tar.gz) = 26175117575a3e3ebf784d27d0822f7e86040fdc51ab94b54bbfc238257af2de
SIZE (gregkh-usbutils-v0.91_GH0.tar.gz) = 185068

View File

@@ -0,0 +1,33 @@
--- Makefile.am.orig 2010-10-22 23:38:09 UTC
+++ Makefile.am
@@ -1,21 +1,9 @@
-SUBDIRS = \
- usbhid-dump
-
AM_LDFLAGS = \
-Wl,--as-needed
-data_DATA = \
- usb.ids
-if HAVE_ZLIB
-data_DATA += usb.ids.gz
-endif
-
sbin_PROGRAMS = \
lsusb
-sbin_SCRIPTS = \
- update-usbids.sh
-
bin_SCRIPTS = \
usb-devices
@@ -59,7 +47,7 @@ lsusb.8: $(srcdir)/lsusb.8.in
usb-devices.1: $(srcdir)/usb-devices.1.in
sed 's|VERSION|$(VERSION)|g' $< >$@
-pkgconfigdir = $(datarootdir)/pkgconfig
+pkgconfigdir = $(prefix)/libdata/pkgconfig
pkgconfig_DATA = usbutils.pc
usbutils.pc: $(srcdir)/usbutils.pc.in

View File

@@ -0,0 +1,10 @@
--- configure.ac.orig 2010-10-22 23:38:09 UTC
+++ configure.ac
@@ -35,7 +35,6 @@ AC_CONFIG_HEADERS([config.h])
AC_CONFIG_FILES([
Makefile
])
-AC_CONFIG_SUBDIRS([usbhid-dump])
AC_OUTPUT
AC_MSG_RESULT([

View File

@@ -0,0 +1,10 @@
--- usbmisc.c.orig 2010-10-22 23:38:09 UTC
+++ usbmisc.c
@@ -29,6 +29,7 @@
#include <stdio.h>
#include <string.h>
+#include <unistd.h>
#include "usbmisc.h"

View File

@@ -0,0 +1,4 @@
Usbutils contains the lsusb utility for displaying information about
USB buses in the system and the devices connected to them.
WWW: http://sourceforge.net/projects/linux-usb/

View File

@@ -0,0 +1,5 @@
bin/usb-devices
libdata/pkgconfig/usbutils.pc
man/man1/usb-devices.1.gz
man/man8/lsusb.8.gz
sbin/lsusb

39
system/xfsprogs/Makefile Normal file
View File

@@ -0,0 +1,39 @@
# Created by: Craig Rodrigues <rodrigc@FreeBSD.org>
# $FreeBSD: head/sysutils/xfsprogs/Makefile 440701 2017-05-12 19:08:17Z danfe $
PORTNAME= xfsprogs
PORTVERSION= 3.2.4
CATEGORIES= sysutils
MASTER_SITES+= ftp://oss.sgi.com/projects/xfs/cmd_tars/
MASTER_SITES+= ftp://oss.sgi.com/projects/xfs/previous/cmd_tars/
MAINTAINER= ports@FreeBSD.org
COMMENT= Utilities for managing XFS filesystems
USES= gmake #libtool:build
GNU_CONFIGURE= yes
CONFIGURE_ENV= OPTIMIZER=-fcommon
CONFIGURE_ARGS= --disable-shared --enable-readline
ALL_TARGET= # empty
LDFLAGS+= -lncurses -s
MAKE_ARGS= V=1
post-patch:
${REINPLACE_CMD} -e '/utmp/d' \
${WRKSRC}/quota/report.c ${WRKSRC}/quota/util.c
${REINPLACE_CMD} \
-e 's|/usr/local|${LOCALBASE}|g' \
-e 's/lio_listio/timer_create/' \
${WRKSRC}/configure
${REINPLACE_CMD} -e '/#!/s|bash|sh|' \
${WRKSRC}/include/install-sh ${WRKSRC}/install-sh
#post-install:
#.for f in mkfs.xfs xfs_copy xfs_db xfs_estimate xfs_fsr xfs_growfs xfs_io \
# xfs_logprint xfs_mdrestore xfs_quota xfs_repair xfs_rtcp
# ${STRIP_CMD} ${STAGEDIR}${PREFIX}/sbin/${f}
#.endfor
.include <bsd.port.mk>
#EOF

3
system/xfsprogs/distinfo Normal file
View File

@@ -0,0 +1,3 @@
TIMESTAMP = 1438219249
SHA256 (xfsprogs-3.2.4.tar.gz) = dde65ead82d3cbfa9b4ded9796b6d22095d7d759a22d41ae6f1a4ec458bb0465
SIZE (xfsprogs-3.2.4.tar.gz) = 1482424

View File

@@ -0,0 +1,266 @@
--- fsr/xfs_fsr.c.orig 2015-07-24 04:28:04 UTC
+++ fsr/xfs_fsr.c
@@ -26,15 +26,13 @@
#include <fcntl.h>
#include <errno.h>
-#include <malloc.h>
-#include <mntent.h>
+#include <sys/mount.h>
#include <syslog.h>
#include <signal.h>
#include <sys/ioctl.h>
#include <sys/wait.h>
-#include <sys/vfs.h>
#include <sys/statvfs.h>
-#include <sys/xattr.h>
+#include <sys/extattr.h>
#ifndef XFS_XFLAG_NODEFRAG
@@ -184,10 +182,13 @@ aborter(int unused)
static char *
find_mountpoint(char *mtab, char *argname, struct stat64 *sb)
{
- struct mntent *t;
+ struct statfs *t;
struct stat64 ms;
- FILE *mtabp;
char *mntp = NULL;
+ int nt;
+
+#ifdef __linux__
+ FILE *mtabp;
mtabp = setmntent(mtab, "r");
if (!mtabp) {
@@ -195,40 +196,43 @@ find_mountpoint(char *mtab, char *argnam
progname, mtab);
exit(1);
}
+#endif
- while ((t = getmntent(mtabp))) {
+ for (nt = getmntinfo(&t, MNT_NOWAIT); nt--; t++) {
if (S_ISDIR(sb->st_mode)) { /* mount point */
- if (stat64(t->mnt_dir, &ms) < 0)
+ if (stat64(t->f_mntonname, &ms) < 0)
continue;
if (sb->st_ino != ms.st_ino)
continue;
if (sb->st_dev != ms.st_dev)
continue;
- if (strcmp(t->mnt_type, MNTTYPE_XFS) != 0)
+ if (strcmp(t->f_fstypename, MNTTYPE_XFS) != 0)
continue;
} else { /* device */
struct stat64 sb2;
- if (stat64(t->mnt_fsname, &ms) < 0)
+ if (stat64(t->f_mntfromname, &ms) < 0)
continue;
if (sb->st_rdev != ms.st_rdev)
continue;
- if (strcmp(t->mnt_type, MNTTYPE_XFS) != 0)
+ if (strcmp(t->f_fstypename, MNTTYPE_XFS) != 0)
continue;
/*
* Make sure the mountpoint given by mtab is accessible
* before using it.
*/
- if (stat64(t->mnt_dir, &sb2) < 0)
+ if (stat64(t->f_mntonname, &sb2) < 0)
continue;
}
- mntp = t->mnt_dir;
+ mntp = t->f_mntonname;
break;
}
+#ifdef __linux__
endmntent(mtabp);
+#endif
return mntp;
}
@@ -304,6 +308,7 @@ main(int argc, char **argv)
}
}
+#ifdef __linux__
/*
* If the user did not specify an explicit mount table, try to use
* /proc/mounts if it is available, else /etc/mtab. We prefer
@@ -317,6 +322,7 @@ main(int argc, char **argv)
else
mtab = _PATH_MOUNTED;
}
+#endif
if (vflag)
setbuf(stdout, NULL);
@@ -392,7 +398,7 @@ usage(int ret)
" -t time How long to run in seconds.\n"
" -p passes Number of passes before terminating global re-org.\n"
" -f leftoff Use this instead of %s.\n"
-" -m mtab Use something other than /etc/mtab.\n"
+" -m mtab Use this instead of /etc/mtab (ignored on FreeBSD).\n"
" -d Debug, print even more.\n"
" -v Verbose, more -v's more verbose.\n"
" -V Print version number and exit.\n"
@@ -406,17 +412,20 @@ usage(int ret)
static void
initallfs(char *mtab)
{
- FILE *fp;
- struct mntent *mp;
- int mi;
+ struct statfs *mp;
+ int mi, nmp;
char *cp;
struct stat64 sb;
+#ifdef __linux__
+ FILE *fp;
+
fp = setmntent(mtab, "r");
if (fp == NULL) {
fsrprintf(_("could not open mtab file: %s\n"), mtab);
exit(1);
}
+#endif
/* malloc a number of descriptors, increased later if needed */
if (!(fsbase = (fsdesc_t *)malloc(fsbufsize * sizeof(fsdesc_t)))) {
@@ -428,23 +437,19 @@ initallfs(char *mtab)
/* find all rw xfs file systems */
mi = 0;
fs = fsbase;
- while ((mp = getmntent(fp))) {
+ for (nmp = getmntinfo(&mp, MNT_NOWAIT); nmp--; mp++) {
int rw = 0;
- if (strcmp(mp->mnt_type, MNTTYPE_XFS ) != 0 ||
- stat64(mp->mnt_fsname, &sb) == -1 ||
+ if (strcmp(mp->f_fstypename, MNTTYPE_XFS ) != 0 ||
+ stat64(mp->f_mntfromname, &sb) == -1 ||
!S_ISBLK(sb.st_mode))
continue;
- cp = strtok(mp->mnt_opts,",");
- do {
- if (strcmp("rw", cp) == 0)
- rw++;
- } while ((cp = strtok(NULL, ",")) != NULL);
+ rw = !(mp->f_flags & MNT_RDONLY);
if (rw == 0) {
if (dflag)
fsrprintf(_("Skipping %s: not mounted rw\n"),
- mp->mnt_fsname);
+ mp->f_mntfromname);
continue;
}
@@ -464,15 +469,15 @@ initallfs(char *mtab)
fs = (fsbase + mi); /* Needed ? */
}
- fs->dev = strdup(mp->mnt_fsname);
- fs->mnt = strdup(mp->mnt_dir);
+ fs->dev = strdup(mp->f_mntfromname);
+ fs->mnt = strdup(mp->f_mntonname);
if (fs->dev == NULL) {
- fsrprintf(_("strdup(%s) failed\n"), mp->mnt_fsname);
+ fsrprintf(_("strdup(%s) failed\n"), mp->f_mntfromname);
exit(1);
}
if (fs->mnt == NULL) {
- fsrprintf(_("strdup(%s) failed\n"), mp->mnt_dir);
+ fsrprintf(_("strdup(%s) failed\n"), mp->f_mntonname);
exit(1);
}
mi++;
@@ -480,7 +485,9 @@ initallfs(char *mtab)
}
numfs = mi;
fsend = (fsbase + numfs);
+#ifdef __linux__
endmntent(fp);
+#endif
if (numfs == 0) {
fsrprintf(_("no rw xfs file systems in mtab: %s\n"), mtab);
exit(0);
@@ -1027,7 +1034,7 @@ fsr_setup_attr_fork(
xfs_bstat_t *bstatp)
{
struct stat64 tstatbuf;
- int i;
+ int i, ns;
int diff = 0;
int last_forkoff = 0;
int no_change_cnt = 0;
@@ -1036,6 +1043,9 @@ fsr_setup_attr_fork(
if (!(bstatp->bs_xflags & XFS_XFLAG_HASATTR))
return 0;
+ if (extattr_string_to_namespace("user", &ns) == -1)
+ return -1;
+
/*
* use the old method if we have attr1 or the kernel does not yet
* support passing the fork offset in the bulkstat data.
@@ -1043,8 +1053,8 @@ fsr_setup_attr_fork(
if (!(fsgeom.flags & XFS_FSOP_GEOM_FLAGS_ATTR2) ||
bstatp->bs_forkoff == 0) {
/* attr1 */
- ret = fsetxattr(tfd, "user.X", "X", 1, XATTR_CREATE);
- if (ret) {
+ ret = extattr_set_fd(tfd, ns, "X", "X", 1);
+ if (ret == -1) {
fsrprintf(_("could not set ATTR\n"));
return -1;
}
@@ -1085,7 +1095,7 @@ fsr_setup_attr_fork(
if (!diff)
goto out;
- snprintf(name, sizeof(name), "user.%d", i);
+ snprintf(name, sizeof(name), "%d", i);
/*
* If there is no attribute, then we need to create one to get
@@ -1093,8 +1103,8 @@ fsr_setup_attr_fork(
*/
if (!tbstat.bs_forkoff) {
ASSERT(i == 0);
- ret = fsetxattr(tfd, name, "XX", 2, XATTR_CREATE);
- if (ret) {
+ ret = extattr_set_fd(tfd, ns, name, "XX", 2);
+ if (ret == -1) {
fsrprintf(_("could not set ATTR\n"));
return -1;
}
@@ -1141,7 +1151,8 @@ fsr_setup_attr_fork(
if (diff < 0 && fsx.fsx_nextents > 0) {
char val[2048];
memset(val, 'X', 2048);
- if (fsetxattr(tfd, name, val, 2048, 0)) {
+ if (extattr_set_fd(tfd, ns, name, val, 2048)
+ == -1) {
fsrprintf(_("big ATTR set failed\n"));
return -1;
}
@@ -1185,8 +1196,8 @@ fsr_setup_attr_fork(
}
/* we need to grow the attr fork, so create another attr */
- ret = fsetxattr(tfd, name, "XX", 2, XATTR_CREATE);
- if (ret) {
+ ret = extattr_set_fd(tfd, ns, name, "XX", 2);
+ if (ret == -1) {
fsrprintf(_("could not set ATTR\n"));
return -1;
}

View File

@@ -0,0 +1,17 @@
--- include/freebsd.h.orig 2015-07-24 04:28:04 UTC
+++ include/freebsd.h
@@ -37,10 +37,14 @@
#define ftruncate64 ftruncate
#define lseek64 lseek
#define stat64 stat
+#define lstat64 lstat
#define pwrite64 pwrite
#define pread64 pread
#define fdatasync fsync
#define memalign(a,sz) valloc(sz)
+#define nftw64 nftw
+#define statvfs64 statvfs
+#define posix_fadvise64 posix_fadvise
#define constpp char * const *

View File

@@ -0,0 +1,10 @@
--- include/libxfs.h.orig 2015-07-24 04:28:04 UTC
+++ include/libxfs.h
@@ -27,7 +27,6 @@
#include <xfs/list.h>
#include <xfs/hlist.h>
#include <xfs/cache.h>
-#include <xfs/bitops.h>
#include <xfs/kmem.h>
#include <xfs/radix-tree.h>
#include <xfs/swab.h>

View File

@@ -0,0 +1,11 @@
--- include/list.h.orig 2014-01-20 22:47:46 UTC
+++ include/list.h
@@ -29,7 +29,7 @@ struct list_head {
#define LIST_HEAD_INIT(name) { &(name), &(name) }
-#define LIST_HEAD(name) \
+#define XFS_LIST_HEAD(name) \
struct list_head name = LIST_HEAD_INIT(name)
#define INIT_LIST_HEAD(list) list_head_init(list)

View File

@@ -0,0 +1,11 @@
--- include/xfs_bit.h.orig 2015-07-24 04:28:04 UTC
+++ include/xfs_bit.h
@@ -47,7 +47,7 @@ static inline int xfs_highbit32(__uint32
/* Get high bit set out of 64-bit argument, -1 if none set */
static inline int xfs_highbit64(__uint64_t v)
{
- return fls64(v) - 1;
+ return flsll(v) - 1;
}
/* Get low bit set out of 32-bit argument, -1 if none set */

View File

@@ -0,0 +1,41 @@
--- io/mmap.c.orig 2015-07-24 04:28:04 UTC
+++ io/mmap.c
@@ -575,6 +575,7 @@ mwrite_f(
return 0;
}
+#ifdef __linux__
static void
mremap_help(void)
{
@@ -634,6 +635,7 @@ mremap_f(
return 0;
}
+#endif
void
mmap_init(void)
@@ -689,6 +691,7 @@ mmap_init(void)
_("writes data into a region in the current memory mapping");
mwrite_cmd.help = mwrite_help;
+#ifdef __linux__
mremap_cmd.name = "mremap";
mremap_cmd.altname = "mrm";
mremap_cmd.cfunc = mremap_f;
@@ -699,11 +702,14 @@ mmap_init(void)
mremap_cmd.oneline =
_("alters the size of the current memory mapping");
mremap_cmd.help = mremap_help;
+#endif
add_command(&mmap_cmd);
add_command(&mread_cmd);
add_command(&msync_cmd);
add_command(&munmap_cmd);
add_command(&mwrite_cmd);
+#ifdef __linux__
add_command(&mremap_cmd);
+#endif
}

View File

@@ -0,0 +1,20 @@
--- io/readdir.c.orig 2015-07-24 04:28:04 UTC
+++ io/readdir.c
@@ -72,7 +72,7 @@ dump_dirent(
long long offset,
struct dirent *dirent)
{
- printf("%08llx: d_ino: 0x%08lx", offset, dirent->d_ino);
+ printf("%08llx: d_ino: 0x%08x", offset, dirent->d_ino);
#ifdef _DIRENT_HAVE_D_OFF
printf(" d_off: 0x%08lx", dirent->d_off);
#endif
@@ -109,7 +109,7 @@ read_directory(
if (dump) {
dump_dirent(offset, dirent);
- offset = dirent->d_off;
+ offset = telldir(dir);
}
}

View File

@@ -0,0 +1,10 @@
--- libhandle/handle.c.orig 2015-07-24 04:28:04 UTC
+++ libhandle/handle.c
@@ -23,6 +23,7 @@
/* just pick a value we know is more than big enough */
#define MAXHANSIZ 64
+#define XATTR_LIST_MAX 65536
/*
* The actual content of a handle is supposed to be opaque here.

View File

@@ -0,0 +1,11 @@
--- libhandle/jdm.c.orig 2015-07-24 04:28:04 UTC
+++ libhandle/jdm.c
@@ -21,6 +21,8 @@
#include <xfs/jdm.h>
#include <xfs/parent.h>
+#define XATTR_LIST_MAX 65536
+
/* internal fshandle - typecast to a void for external use */
#define FSHANDLE_SZ 8
typedef struct fshandle {

View File

@@ -0,0 +1,11 @@
--- libxcmd/paths.c.orig 2015-07-24 04:28:04 UTC
+++ libxcmd/paths.c
@@ -364,7 +364,7 @@ fs_table_initialise_mounts(
continue;
if (!realpath(stats[i].f_mntfromname, rmntfromname))
continue;
- if (!realpath(stats[i].f_mntonname, rmnttomname)))
+ if (!realpath(stats[i].f_mntonname, rmntonname))
continue;
if (path &&

View File

@@ -0,0 +1,10 @@
--- libxfs/crc32.c.orig 2015-07-24 04:28:04 UTC
+++ libxfs/crc32.c
@@ -33,6 +33,7 @@
* match the hardware acceleration available on Intel CPUs.
*/
+#include <inttypes.h>
#include <libxfs.h>
#include "crc32defs.h"

View File

@@ -0,0 +1,19 @@
--- libxfs/rdwr.c.orig 2015-07-24 04:28:04 UTC
+++ libxfs/rdwr.c
@@ -16,6 +16,7 @@
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include <inttypes.h>
#include <xfs/libxfs.h>
#include "init.h"
@@ -371,7 +372,7 @@ libxfs_bcompare(struct cache_node *node,
#ifdef IO_BCOMPARE_CHECK
if (!(libxfs_bcache->c_flags & CACHE_MISCOMPARE_PURGE)) {
fprintf(stderr,
- "%lx: Badness in key lookup (length)\n"
+ "%p: Badness in key lookup (length)\n"
"bp=(bno 0x%llx, len %u bytes) key=(bno 0x%llx, len %u bytes)\n",
pthread_self(),
(unsigned long long)bp->b_bn, (int)bp->b_bcount,

View File

@@ -0,0 +1,10 @@
--- libxfs/util.c.orig 2015-07-24 04:28:04 UTC
+++ libxfs/util.c
@@ -16,6 +16,7 @@
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include <inttypes.h>
#include <xfs.h>
#include <time.h>
#include <stdio.h>

View File

@@ -0,0 +1,10 @@
--- libxfs/xfs_attr_remote.c.orig 2015-07-24 04:28:04 UTC
+++ libxfs/xfs_attr_remote.c
@@ -19,6 +19,7 @@
#include <xfs.h>
#define ATTR_RMTVALUE_MAPSIZE 1 /* # of map entries at once */
+#define XATTR_SIZE_MAX 65536
/*
* Each contiguous block has a header, so it is not just a simple attribute

View File

@@ -0,0 +1,10 @@
--- libxlog/util.c.orig 2015-07-28 23:02:16 UTC
+++ libxlog/util.c
@@ -16,6 +16,7 @@
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include <inttypes.h>
#include <xfs/libxlog.h>
int print_exit;

View File

@@ -0,0 +1,11 @@
--- po/de.po.orig 2015-07-24 04:28:04 UTC
+++ po/de.po
@@ -3084,7 +3084,7 @@ msgid "%s will take about %.1f megabytes\n"
#: .././estimate/xfs_estimate.c:191
#, c-format
msgid "%s will take about %.1f megabytes\n"
-msgstr "%s wird etwa %.lf Megabytes einnehmen\n"
+msgstr "%s wird etwa %.1f Megabytes einnehmen\n"
#: .././estimate/xfs_estimate.c:198
#, c-format

View File

@@ -0,0 +1,10 @@
--- repair/agheader.c.orig 2015-07-24 04:28:04 UTC
+++ repair/agheader.c
@@ -16,6 +16,7 @@
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include <inttypes.h>
#include <libxfs.h>
#include "globals.h"
#include "agheader.h"

View File

@@ -0,0 +1,10 @@
--- repair/attr_repair.c.orig 2015-07-24 04:28:04 UTC
+++ repair/attr_repair.c
@@ -16,6 +16,7 @@
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include <inttypes.h>
#include <libxfs.h>
#include "globals.h"
#include "err_protos.h"

View File

@@ -0,0 +1,10 @@
--- repair/attr_repair.h.orig 2015-07-24 04:28:04 UTC
+++ repair/attr_repair.h
@@ -71,6 +71,7 @@ struct xfs_acl {
* For v4 superblocks, that is limited to 25 entries. For v5 superblocks, it is
* limited only by the maximum size of the xattr that stores the information.
*/
+#define XATTR_SIZE_MAX 65536
#define XFS_ACL_MAX_ENTRIES(mp) \
(xfs_sb_version_hascrc(&mp->m_sb) \
? (XATTR_SIZE_MAX - sizeof(struct xfs_acl)) / \

View File

@@ -0,0 +1,10 @@
--- repair/bmap.c.orig 2015-07-24 04:28:04 UTC
+++ repair/bmap.c
@@ -16,6 +16,7 @@
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include <inttypes.h>
#include <libxfs.h>
#include "err_protos.h"
#include "bmap.h"

View File

@@ -0,0 +1,10 @@
--- repair/dino_chunks.c.orig 2015-07-24 04:28:04 UTC
+++ repair/dino_chunks.c
@@ -16,6 +16,7 @@
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include <inttypes.h>
#include <libxfs.h>
#include "avl.h"
#include "globals.h"

View File

@@ -0,0 +1,10 @@
--- repair/dinode.c.orig 2015-07-24 04:28:04 UTC
+++ repair/dinode.c
@@ -16,6 +16,7 @@
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include <inttypes.h>
#include <libxfs.h>
#include "avl.h"
#include "globals.h"

View File

@@ -0,0 +1,10 @@
--- repair/dir2.c.orig 2015-07-24 04:28:04 UTC
+++ repair/dir2.c
@@ -16,6 +16,7 @@
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include <inttypes.h>
#include <libxfs.h>
#include "avl.h"
#include "globals.h"

View File

@@ -0,0 +1,10 @@
--- repair/incore.c.orig 2015-07-24 04:28:04 UTC
+++ repair/incore.c
@@ -16,6 +16,7 @@
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include <inttypes.h>
#include <libxfs.h>
#include "avl.h"
#include "btree.h"

View File

@@ -0,0 +1,10 @@
--- repair/phase2.c.orig 2015-07-28 23:02:16 UTC
+++ repair/phase2.c
@@ -16,6 +16,7 @@
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include <inttypes.h>
#include <xfs/libxlog.h>
#include "avl.h"
#include "globals.h"

View File

@@ -0,0 +1,10 @@
--- repair/phase3.c.orig 2015-07-24 04:28:04 UTC
+++ repair/phase3.c
@@ -16,6 +16,7 @@
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include <inttypes.h>
#include <libxfs.h>
#include "threads.h"
#include "prefetch.h"

View File

@@ -0,0 +1,10 @@
--- repair/phase4.c.orig 2015-07-24 04:28:04 UTC
+++ repair/phase4.c
@@ -16,6 +16,7 @@
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include <inttypes.h>
#include <libxfs.h>
#include "threads.h"
#include "prefetch.h"

View File

@@ -0,0 +1,19 @@
--- repair/phase6.c.orig 2015-07-24 04:28:04 UTC
+++ repair/phase6.c
@@ -16,6 +16,7 @@
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include <inttypes.h>
#include <libxfs.h>
#include "threads.h"
#include "prefetch.h"
@@ -49,7 +50,7 @@ typedef struct dotdot_update {
int ino_offset;
} dotdot_update_t;
-static LIST_HEAD(dotdot_update_list);
+static XFS_LIST_HEAD(dotdot_update_list);
static int dotdot_update;
static void

View File

@@ -0,0 +1,10 @@
--- repair/phase7.c.orig 2015-07-24 04:28:04 UTC
+++ repair/phase7.c
@@ -16,6 +16,7 @@
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include <inttypes.h>
#include <libxfs.h>
#include "avl.h"
#include "globals.h"

View File

@@ -0,0 +1,8 @@
--- repair/progress.c.orig 2015-07-24 04:28:04 UTC
+++ repair/progress.c
@@ -1,4 +1,5 @@
+#include <inttypes.h>
#include <libxfs.h>
#include "globals.h"
#include "progress.h"

View File

@@ -0,0 +1,10 @@
--- repair/sb.c.orig 2015-07-24 04:28:04 UTC
+++ repair/sb.c
@@ -16,6 +16,7 @@
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include <inttypes.h>
#include <libxfs.h>
#include <libxlog.h>
#include "agheader.h"

View File

@@ -0,0 +1,10 @@
--- repair/scan.c.orig 2015-07-24 04:28:04 UTC
+++ repair/scan.c
@@ -16,6 +16,7 @@
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include <inttypes.h>
#include <libxfs.h>
#include "avl.h"
#include "globals.h"

View File

@@ -0,0 +1,10 @@
--- repair/xfs_repair.c.orig 2015-07-24 04:28:04 UTC
+++ repair/xfs_repair.c
@@ -16,6 +16,7 @@
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include <inttypes.h>
#include <xfs/libxlog.h>
#include <sys/resource.h>
#include "avl.h"

View File

@@ -0,0 +1,9 @@
A set of commands to work with XFS filesystems, including mkfs.xfs(8).
XFS is a high performance journaling filesystem which originated on the
SGI IRIX platform. It is completely multi-threaded, can support large
files and large filesystems, extended attributes, variable block sizes,
is extent based, and makes extensive use of B-trees (for directories,
extents, free space) to aid both performance and scalability.
WWW: http://oss.sgi.com/projects/xfs/

50
system/xfsprogs/pkg-plist Normal file
View File

@@ -0,0 +1,50 @@
man/man5/projects.5.gz
man/man5/projid.5.gz
man/man5/xfs.5.gz
man/man8/fsck.xfs.8.gz
man/man8/mkfs.xfs.8.gz
man/man8/xfs_admin.8.gz
man/man8/xfs_bmap.8.gz
man/man8/xfs_copy.8.gz
man/man8/xfs_db.8.gz
man/man8/xfs_estimate.8.gz
man/man8/xfs_freeze.8.gz
man/man8/xfs_fsr.8.gz
man/man8/xfs_growfs.8.gz
man/man8/xfs_info.8.gz
man/man8/xfs_io.8.gz
man/man8/xfs_logprint.8.gz
man/man8/xfs_mdrestore.8.gz
man/man8/xfs_metadump.8.gz
man/man8/xfs_mkfile.8.gz
man/man8/xfs_ncheck.8.gz
man/man8/xfs_quota.8.gz
man/man8/xfs_repair.8.gz
man/man8/xfs_rtcp.8.gz
sbin/fsck.xfs
sbin/mkfs.xfs
sbin/xfs_admin
sbin/xfs_bmap
sbin/xfs_copy
sbin/xfs_db
sbin/xfs_estimate
sbin/xfs_freeze
sbin/xfs_fsr
sbin/xfs_growfs
sbin/xfs_info
sbin/xfs_io
sbin/xfs_logprint
sbin/xfs_mdrestore
sbin/xfs_metadump
sbin/xfs_mkfile
sbin/xfs_ncheck
sbin/xfs_quota
sbin/xfs_repair
sbin/xfs_rtcp
share/locale/de/LC_MESSAGES/xfsprogs.mo
share/locale/pl/LC_MESSAGES/xfsprogs.mo
@dir share/locale/de/LC_MESSAGES
@dir share/locale/de
@dir share/locale/pl/LC_MESSAGES
@dir share/locale/pl
@dir share/locale