revise .cabal

This commit is contained in:
Jens Petersen 2021-08-04 22:29:11 +08:00
parent 0d52ab339d
commit e727b2beb5

View File

@ -1,58 +1,58 @@
name: network-info name: network-info
version: 0.2.0.10 version: 0.2.0.10
x-revision: 1 x-revision: 1
synopsis: Access the local computer's basic network configuration synopsis: Access the local computer's basic network configuration
description: This library provides simple read-only access to the description: This library provides simple read-only access to the
local computer's networking configuration. It is local computer's networking configuration. It is
currently capable of getting a list of all the network currently capable of getting a list of all the network
interfaces and their respective IPv4, IPv6 and MAC interfaces and their respective IPv4, IPv6 and MAC
addresses. addresses.
. .
network-info has been tested and is known to work on network-info has been tested and is known to work on
Ubuntu 10.10, FreeBSD 9.0, Mac OS X 10.6.4 and Windows Ubuntu 10.10, FreeBSD 9.0, Mac OS X 10.6.4 and Windows
XP/7. It probably works on other flavours of Linux, XP/7. It probably works on other flavours of Linux,
OS X, FreeBSD and Windows as well. OS X, FreeBSD and Windows as well.
homepage: http://github.com/jacobstanley/network-info homepage: http://github.com/jacobstanley/network-info
license: BSD3 license: BSD3
license-file: LICENSE license-file: LICENSE
author: Jacob Stanley author: Jacob Stanley
maintainer: Jacob Stanley <jacob@stanley.io> maintainer: Jacob Stanley <jacob@stanley.io>
category: Network category: Network
build-type: Simple build-type: Simple
cabal-version: >= 1.6 cabal-version: >= 1.6
tested-with: GHC == 8.0.2, GHC == 8.2.2, GHC == 8.4.1 tested-with: GHC == 8.0.2, GHC == 8.2.2, GHC == 8.4.1
extra-source-files: extra-source-files:
cbits/common.h, cbits/common.h,
cbits/common.inc, cbits/common.inc,
cbits/network.h, cbits/network.h,
test/src/Main.hs, test/src/Main.hs,
test/network-info-test.cabal, test/network-info-test.cabal,
test/run-tests.bat, test/run-tests.bat,
test/run-tests.sh, test/run-tests.sh,
README.mkd, README.mkd,
CHANGELOG.md CHANGELOG.md
source-repository head source-repository head
type: git type: git
location: git://github.com/jacobstanley/network-info.git location: git://github.com/jacobstanley/network-info.git
Library Library
hs-source-dirs: src hs-source-dirs: src
include-dirs: cbits include-dirs: cbits
cc-options: -Wall -std=c99 cc-options: -Wall -std=c99
exposed-modules: Network.Info exposed-modules: Network.Info
build-depends: build-depends:
base == 4.* base == 4.*
if os(windows) if os(windows)
c-sources: cbits/network-windows.c c-sources: cbits/network-windows.c
extra-libraries: iphlpapi extra-libraries: iphlpapi
else else
c-sources: cbits/network-unix.c c-sources: cbits/network-unix.c
if os(solaris) if os(solaris)
extra-libraries: socket, nsl extra-libraries: socket, nsl