cpdup
This commit is contained in:
parent
72c388dd78
commit
6714ec1c7f
3 changed files with 53 additions and 5 deletions
28
talimatname/genel/c/cpdup/GNUmakefile
Normal file
28
talimatname/genel/c/cpdup/GNUmakefile
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
SRCS = cpdup.c fsmid.c hclink.c hcproto.c misc.c
|
||||||
|
OBJS = $(SRCS:%.c=%.o)
|
||||||
|
DEPS = $(SRCS:%.c=%.d)
|
||||||
|
|
||||||
|
CPPFLAGS += -D_GNU_SOURCE -D__USE_FILE_OFFSET64 -MD -MP \
|
||||||
|
-D"__printflike(fmtarg, firstvararg)=__attribute__((__format__ (__printf__, fmtarg, firstvararg)))" \
|
||||||
|
-D"__printf0like(fmtarg, firstvararg)=__attribute__((__format__ (__printf0__, fmtarg, firstvararg)))"
|
||||||
|
|
||||||
|
ifndef NOPTHREADS
|
||||||
|
CFLAGS += -DUSE_PTHREADS=1 -pthread
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifdef NOMD5
|
||||||
|
CFLAGS += -DNOMD5
|
||||||
|
else
|
||||||
|
CFLAGS += $(shell pkg-config --cflags libbsd-overlay)
|
||||||
|
LDLIBS += $(shell pkg-config --libs libbsd-overlay)
|
||||||
|
SRCS += md5.c
|
||||||
|
endif
|
||||||
|
|
||||||
|
all: cpdup
|
||||||
|
|
||||||
|
cpdup: $(OBJS)
|
||||||
|
|
||||||
|
clean:
|
||||||
|
-rm -f $(OBJS) $(DEPS)
|
||||||
|
|
||||||
|
-include $(DEPS)
|
19
talimatname/genel/c/cpdup/talimat
Normal file
19
talimatname/genel/c/cpdup/talimat
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
# Tanım: Dosya sistemlerini izinleri, bayrakları, sahiplik ve araçları saklamak için DragonFly BSD aracı
|
||||||
|
# URL: http://apollo.backplane.com/FreeBSDPorts/
|
||||||
|
# Paketçi: Cihan_Alkan
|
||||||
|
# Gerekler: libbsd pkg-config
|
||||||
|
# Grup: sistem
|
||||||
|
|
||||||
|
isim=cpdup
|
||||||
|
surum=1.18
|
||||||
|
devir=1
|
||||||
|
kaynak=(http://apollo.backplane.com/FreeBSDPorts/cpdup-$surum.tar.gz
|
||||||
|
GNUmakefile)
|
||||||
|
|
||||||
|
derle() {
|
||||||
|
cd "$isim"
|
||||||
|
sed -i 's/__unused/__attribute__((__unused__))/' *.c
|
||||||
|
make -f "$SRC"/GNUmakefile
|
||||||
|
install -Dm 755 cpdup "$PKG"/usr/bin/cpdup
|
||||||
|
install -Dm 644 cpdup.1 "$PKG"/usr/share/man/man1
|
||||||
|
}
|
|
@ -2,9 +2,10 @@
|
||||||
# URL: http://libbsd.freedesktop.org
|
# URL: http://libbsd.freedesktop.org
|
||||||
# Paketçi: milisarge
|
# Paketçi: milisarge
|
||||||
# Gerekler:
|
# Gerekler:
|
||||||
|
# Grup: sistem
|
||||||
|
|
||||||
isim=libbsd
|
isim=libbsd
|
||||||
surum=0.7.0
|
surum=0.8.7
|
||||||
devir=1
|
devir=1
|
||||||
|
|
||||||
kaynak=(http://libbsd.freedesktop.org/releases/$isim-$surum.tar.xz)
|
kaynak=(http://libbsd.freedesktop.org/releases/$isim-$surum.tar.xz)
|
||||||
|
|
Loading…
Add table
Reference in a new issue