On Sun, Feb 23 2020, Hiltjo Posthuma <[email protected]> wrote:
> Hi,
>
> This bumps stagit from 0.9.2 to 0.9.3:
>
> * The Makefile of stagit was changed to pass the libgit2 CFLAGS and LDFLAGS
>   separately. It now uses LIBGIT_INC and LIBGIT_LIB.
>
> * This release adds support for unveil(2).
>
>   For stagit this has the following properties now:
>
>   - stagit-index: only read-access to the file-system for the specified
>     directories/repositories.
>   - stagit: read-access to the specified directory/repository.
>     read-write and creation access to the current directory for the output 
> files.
>     read-write and creation access to the specified cache file.
>
> * Small other improvements (documentation, code-cleanup).
>
>
> Patch below tested on -current on amd64:

Also build-tested on sparc64.  Committed with one tweak, thanks!

> diff --git www/stagit/Makefile www/stagit/Makefile
> index db2effa20f4..a3664e40110 100644
> --- www/stagit/Makefile
> +++ www/stagit/Makefile
> @@ -2,7 +2,7 @@
>  
>  COMMENT =            static git page generator
>  
> -DISTNAME =           stagit-0.9.2
> +DISTNAME =           stagit-0.9.3
>  REVISION =           0

REVISION should be dropped for updates.

>  CATEGORIES =         www
> @@ -15,6 +15,7 @@ MAINTAINER =                Hiltjo Posthuma 
> <[email protected]>
>  PERMIT_PACKAGE =     Yes
>  
>  # uses pledge()
> +# uses unveil()

I'm fine with this formatting

>  WANTLIB =            c git2
>  
>  LIB_DEPENDS =                devel/libgit2/libgit2>=0.22
> @@ -22,8 +23,10 @@ LIB_DEPENDS =              devel/libgit2/libgit2>=0.22
>  MASTER_SITES =               https://codemadness.org/releases/stagit/
>  
>  MAKE_FLAGS =         CC='${CC}' \
> -                     CFLAGS='${CFLAGS} -I${LOCALBASE}/include' \
> -                     LDFLAGS='${LDFLAGS} -L${LOCALBASE}/lib -lgit2' \
> +                     CFLAGS='${CFLAGS}' \
> +                     LDFLAGS='${LDFLAGS}' \
> +                     LIBGIT_INC='-I${LOCALBASE}/include' \
> +                     LIBGIT_LIB='-L${LOCALBASE}/lib -lgit2' \
>                       COMPATOBJ=''
>  
>  NO_TEST =            Yes
> diff --git www/stagit/distinfo www/stagit/distinfo
> index 99c196aa3cb..08f87f8429f 100644
> --- www/stagit/distinfo
> +++ www/stagit/distinfo
> @@ -1,2 +1,2 @@
> -SHA256 (stagit-0.9.2.tar.gz) = chzXz6xHkAjoA+/1r9DJX/nbxkBFCvpbhEvoLY3+DLo=
> -SIZE (stagit-0.9.2.tar.gz) = 18525
> +SHA256 (stagit-0.9.3.tar.gz) = 24m0HG04A7JWLVb+4Nk5Ng/Ih5AvF6ryff93TfBALaM=
> +SIZE (stagit-0.9.3.tar.gz) = 18464

-- 
jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF  DDCC 0DFA 74AE 1524 E7EE

Reply via email to