cpdup
This commit is contained in:
parent
72c388dd78
commit
6714ec1c7f
|
@ -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)
|
|
@ -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,15 +2,16 @@
|
|||
# URL: http://libbsd.freedesktop.org
|
||||
# Paketçi: milisarge
|
||||
# Gerekler:
|
||||
# Grup: sistem
|
||||
|
||||
isim=libbsd
|
||||
surum=0.7.0
|
||||
surum=0.8.7
|
||||
devir=1
|
||||
|
||||
kaynak=(http://libbsd.freedesktop.org/releases/$isim-$surum.tar.xz)
|
||||
derle() {
|
||||
cd $isim-$surum
|
||||
./configure --prefix=/usr
|
||||
make
|
||||
make DESTDIR=$PKG install
|
||||
cd $isim-$surum
|
||||
./configure --prefix=/usr
|
||||
make
|
||||
make DESTDIR=$PKG install
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue