Levente Polyak pushed to branch main at Arch Linux / Packaging / Packages / lsof


Commits:
801f0b21 by Levente Polyak at 2023-09-03T13:18:59+02:00
upgpkg: 4.98.0-2: cleanup (use autotools and configure)

https://bugs.archlinux.org/task/77291

- - - - -


3 changed files:

- + .SRCINFO
- PKGBUILD
- − license.txt


Changes:

=====================================
.SRCINFO
=====================================
@@ -0,0 +1,16 @@
+# Generated by makepkg 
+# Sun Sep  3 11:17:52 UTC 2023
+pkgbase = lsof
+       pkgdesc = Lists open files for running Unix processes
+       pkgver = 4.98.0
+       pkgrel = 2
+       url = https://github.com/lsof-org/lsof
+       arch = x86_64
+       license = custom
+       makedepends = groff
+       depends = glibc
+       depends = libtirpc
+       source = 
https://github.com/lsof-org/lsof/releases/download/4.98.0/lsof-4.98.0.tar.gz
+       sha512sums = 
6fde12497ce9cbba698be624b45e8392d551626c3e46b50ec23e661b322438ef7162dbac0d06829d56f074c7d934fa1ca98aa50ee1487125c93bebfe8eb2a2e8
+
+pkgname = lsof


=====================================
PKGBUILD
=====================================
@@ -8,37 +8,36 @@
 
 pkgname=lsof
 pkgver=4.98.0
-pkgrel=1
+pkgrel=2
 pkgdesc='Lists open files for running Unix processes'
 url='https://github.com/lsof-org/lsof'
 arch=('x86_64')
 license=('custom')
-depends=('glibc' 'libtirpc')
-source=(https://github.com/lsof-org/lsof/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz
-        license.txt)
-sha512sums=('bd94d6395a425bedd4506a263aac57fb11b608b9dce9c46182ca050be9f92c5cdcae8cca6f7a27a3eaf66a60c37c5d3e2e9414e87eb3b6e524315811d7f5c3a4'
-            
'3bdbc8f213e9bdba946636498d21486e2b79d8ae44a45b284b4dff8875e76f992ab0977e3ed510525a8f74203028acb6b15315fda963666012874be4ce4fdd93')
-
-prepare() {
-  cd lsof-${pkgver}
-
-  sed -i 's|/\* #define\tHASSECURITY\t1 \*/|#define\tHASSECURITY\t1|' 
dialects/linux/machine.h
-  sed -i "s|.so ./version|.ds VN ${pkgver}|" -i Lsof.8
-}
+depends=(
+  glibc
+  libtirpc
+)
+makedepends=(
+  groff
+)
+source=(https://github.com/lsof-org/lsof/releases/download/${pkgver}/${pkgname}-${pkgver}.tar.gz)
+sha512sums=('6fde12497ce9cbba698be624b45e8392d551626c3e46b50ec23e661b322438ef7162dbac0d06829d56f074c7d934fa1ca98aa50ee1487125c93bebfe8eb2a2e8')
 
 build() {
-  cd lsof-${pkgver}
-  ./Configure -n linux
-  make CC="cc ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}"
+  cd ${pkgname}-${pkgver}
+  autoreconf -fiv
+  ./configure \
+    --prefix=/usr \
+    --enable-security \
+    --enable-no-sock-security \
+    --with-libtirpc
+  make
 }
 
 package() {
-  cd lsof-${pkgver}
-
-  install -Dm 755 lsof -t "${pkgdir}"/usr/bin
-  install -Dm 644 Lsof.8 "${pkgdir}"/usr/share/man/man8/lsof.8
-  install -Dm 644 "${srcdir}"/license.txt \
-       "${pkgdir}"/usr/share/licenses/lsof/LICENSE
+  cd ${pkgname}-${pkgver}
+  make DESTDIR="${pkgdir}" install
+  install -Dm 644 COPYING -t "${pkgdir}/usr/share/licenses/${pkgname}"
 }
 
 # vim: ts=2 sw=2 et:


=====================================
license.txt deleted
=====================================
@@ -1,27 +0,0 @@
-Copyright 2002 Purdue Research Foundation, West Lafayette,
-Indiana 47907.  All rights reserved.
-
-Written by Victor A. Abell
-
-This software is not subject to any license of the American
-Telephone and Telegraph Company or the Regents of the
-University of California.
-
-Permission is granted to anyone to use this software for
-any purpose on any computer system, and to alter it and
-redistribute it freely, subject to the following
-restrictions:
-
-1. Neither the authors nor Purdue University are responsible
-   for any consequences of the use of this software.
-
-2. The origin of this software must not be misrepresented,
-   either by explicit claim or by omission.  Credit to the
-   authors and Purdue University must appear in documentation
-   and sources.
-
-3. Altered versions must be plainly marked as such, and must
-   not be misrepresented as being the original software.
-
-4. This notice may not be removed or altered.
-       



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/lsof/-/commit/801f0b210d4cf7bc5fa2ef4a62492261d4de1f67

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/lsof/-/commit/801f0b210d4cf7bc5fa2ef4a62492261d4de1f67
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to