packages feed

ONC-RPC-0.2: ONC-RPC.cabal

name:                ONC-RPC
version:             0.2
synopsis:            ONC RPC (aka Sun RPC) and XDR library
description:         Tools and library for writing ONC (Sun) RPC clients and servers.  Provides equivalent functionality to rpcgen and librpcsvc, except in pure Haskell.  The hsrpcgen tool (and Cabal preprocessor library) allows .x XDR files to generate Haskell protocol descriptors.  The library provides a client interface to use these descriptions to make RPC calls.
license:             Apache-2.0
license-file:        LICENSE
author:              Dylan Simon
maintainer:          dylan@dylex.net
copyright:           2017
category:            Network
build-type:          Custom
cabal-version:       1.24
tested-with:         GHC == 7.10.3, GHC == 8.0.1
extra-source-files:  README.md

source-repository head
  type: git
  location: https://github.com/dylex/haskell-nfs

custom-setup
  setup-depends:
    base >=4.8 && <5,
    base16-bytestring >= 1.0,
    bytestring,
    Cabal,
    cereal >=0.5.4,
    containers,
    filepath,
    haskell-src-exts >= 1.22,
    parsec,
    vector

flag bindresvport
  Description: Enable bindresvport option on client connections
  Default: False

library
  exposed-modules:
    Network.ONCRPC.XDR.Array
    Network.ONCRPC.XDR.Types
    Network.ONCRPC.XDR.Serial
    Network.ONCRPC.XDR.Opaque
    Network.ONCRPC.XDR.Generate
    Network.ONCRPC.XDR.Cabal
    Network.ONCRPC.XDR
    Network.ONCRPC.Types
    Network.ONCRPC.Prot
    Network.ONCRPC.Exception
    Network.ONCRPC.Auth
    Network.ONCRPC.Message
    Network.ONCRPC.Client
    Network.ONCRPC
    Network.ONCRPC.Bind.Prot
  other-modules:
    Network.Socket.All
    Network.ONCRPC.XDR.Specification
    Network.ONCRPC.XDR.Parse
    Network.ONCRPC.XDR.Reident
    Network.ONCRPC.RecordMarking
    Network.ONCRPC.Transport
  default-language: Haskell2010
  ghc-options: -Wall
  build-depends:       
    base >=4.8 && <5,
    base16-bytestring,
    bytestring,
    Cabal,
    cereal >=0.5.4,
    containers,
    filepath,
    haskell-src-exts >= 1.18,
    network >= 3,
    parsec,
    random,
    time,
    vector

  if !os(windows)
    build-depends:
      unix

  if flag(bindresvport)
    cpp-options: -DBINDRESVPORT

executable hsrpcgen
  hs-source-dirs: tools
  main-is: hsrpcgen.hs
  default-language: Haskell2010
  ghc-options: -Wall
  build-depends:
    base >=4.8 && <5,
    filepath,
    ONC-RPC